-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.3 #5569
Closed
Closed
2.3 #5569
Changes from 11 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8700975
Changed <meta http-equiv> to HTML5's <meta charset>
ThomasLandauer 87e2c1e
Note about nesting blocks and {% endblock NAME %}
ThomasLandauer 6ae94e9
Removed unnecessary(?) YAML hint
ThomasLandauer cd009c7
Fixed typo
ThomasLandauer 526ead0
Another typo
ThomasLandauer 0875f78
Merge pull request #3 from ThomasLandauer/ThomasLandauer-patch-3
ThomasLandauer cbc3e26
Merge pull request #4 from ThomasLandauer/ThomasLandauer-patch-4
ThomasLandauer 8e5813c
Merge pull request #2 from ThomasLandauer/ThomasLandauer-patch-2
ThomasLandauer 826a463
Merge pull request #1 from ThomasLandauer/ThomasLandauer-patch-1
ThomasLandauer eed20da
Typo: Removed comma
ThomasLandauer d893965
Merge pull request #5 from ThomasLandauer/ThomasLandauer-patch-1
ThomasLandauer 52dcecd
Update templating.rst
ThomasLandauer 8561baa
Added example for 'required' => false
ThomasLandauer 01ab074
Fixed typo
ThomasLandauer f154514
Fixed file path
ThomasLandauer f57c14c
Merge pull request #6 from ThomasLandauer/ThomasLandauer-patch-5
ThomasLandauer e5fbbf7
Minor clarification
ThomasLandauer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,7 @@ from inside a controller:: | |
->getForm(); | ||
|
||
return $this->render('default/new.html.twig', array( | ||
'form' => $form->createView(), | ||
'form' => $form->createView() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be reverted to comply with the Symfony CS. |
||
)); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,7 +201,7 @@ First, build a base layout file: | |
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta charset="UTF-8"> | ||
<title>{% block title %}Test Application{% endblock %}</title> | ||
</head> | ||
<body> | ||
|
@@ -226,7 +226,7 @@ First, build a base layout file: | |
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta charset="UTF-8"> | ||
<title><?php $view['slots']->output('title', 'Test Application') ?></title> | ||
</head> | ||
<body> | ||
|
@@ -311,7 +311,7 @@ output might look like this: | |
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta charset="UTF-8"> | ||
<title>My cool blog posts</title> | ||
</head> | ||
<body> | ||
|
@@ -370,6 +370,19 @@ When working with template inheritance, here are some tips to keep in mind: | |
{{ parent() }} | ||
{% endblock %} | ||
|
||
* Blocks can be nested. For better overview, you can add the block name to the | ||
``{% endblock %}`` tag like so: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would say "like this". |
||
|
||
.. code-block:: html+jinja | ||
|
||
{% block foo %} | ||
{# ... #} | ||
{% block bar %} | ||
{# ... #} | ||
{% endblock bar %} | ||
{# ... #} | ||
{% endblock foo %} | ||
|
||
.. index:: | ||
single: Templating; Naming conventions | ||
single: Templating; File locations | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment is kind of usefull (and not everyone uses
doctrine:generate:entities
, even more it's better to never use this command).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, then please change it to:
The ArrayCollection $products is automatically initialized in the __construct() method, when you call doctrine:generate:entities