@@ -613,7 +613,8 @@ syntax for controllers (i.e. **bundle**:**controller**:**action**):
613
613
.. code-block :: html+jinja
614
614
615
615
{# app/Resources/views/base.html.twig #}
616
- ...
616
+
617
+ {# ... #}
617
618
618
619
<div id="sidebar">
619
620
{% render "AcmeArticleBundle:Article: recentArticles" with {'max': 3} %}
@@ -622,7 +623,8 @@ syntax for controllers (i.e. **bundle**:**controller**:**action**):
622
623
.. code-block :: html+php
623
624
624
625
<!-- app/Resources/views/base.html.php -->
625
- ...
626
+
627
+ {# ... #}
626
628
627
629
<div id="sidebar">
628
630
<?php echo $view['actions']->render('AcmeArticleBundle:Article: recentArticles', array('max' => 3)) ?>
@@ -720,7 +722,7 @@ correctly:
720
722
721
723
{# src/Acme/ArticleBundle/Resources/views/Article/recentList.html.twig #}
722
724
{% for article in articles %}
723
- <a href="{{ path('article_show', { 'slug': article.slug }) }}">
725
+ <a href="{{ path('article_show', {'slug': article.slug}) }}">
724
726
{{ article.title }}
725
727
</a>
726
728
{% endfor %}
@@ -989,7 +991,8 @@ customize the markup specifically for your application. By digging into the
989
991
990
992
public function indexAction()
991
993
{
992
- $blogs = // some logic to retrieve the blogs
994
+ // some logic to retrieve the blogs
995
+ $blogs = ...;
993
996
994
997
$this->render('AcmeBlogBundle:Blog:index.html.twig', array('blogs' => $blogs));
995
998
}
@@ -1233,7 +1236,6 @@ Template parameters can then be dumped using the ``dump`` function:
1233
1236
.. code-block :: html+jinja
1234
1237
1235
1238
{# src/Acme/ArticleBundle/Resources/views/Article/recentList.html.twig #}
1236
-
1237
1239
{{ dump(articles) }}
1238
1240
1239
1241
{% for article in articles %}
0 commit comments