@@ -561,10 +561,7 @@ them for you. Here's the same sample application, now built in Symfony::
561
561
->createQuery('SELECT p FROM AcmeBlogBundle:Post p')
562
562
->execute();
563
563
564
- return $this->render(
565
- 'AcmeBlogBundle:Blog:list.html.php',
566
- array('posts' => $posts)
567
- );
564
+ return $this->render('Blog/list.html.php', array('posts' => $posts));
568
565
}
569
566
570
567
public function showAction($id)
@@ -579,10 +576,7 @@ them for you. Here's the same sample application, now built in Symfony::
579
576
throw $this->createNotFoundException();
580
577
}
581
578
582
- return $this->render(
583
- 'AcmeBlogBundle:Blog:show.html.php',
584
- array('post' => $post)
585
- );
579
+ return $this->render('Blog/show.html.php', array('post' => $post));
586
580
}
587
581
}
588
582
@@ -593,8 +587,8 @@ now quite a bit simpler:
593
587
594
588
.. code-block :: html+php
595
589
596
- <!-- src/Acme/BlogBundle /Resources/views/Blog/list.html.php -->
597
- <?php $view->extend(':: layout.html.php') ?>
590
+ <!-- app /Resources/views/Blog/list.html.php -->
591
+ <?php $view->extend('layout.html.php') ?>
598
592
599
593
<?php $view['slots']->set('title', 'List of Posts') ?>
600
594
@@ -716,8 +710,8 @@ for example, the list template written in Twig:
716
710
717
711
.. code-block :: html+jinja
718
712
719
- {# src/Acme/BlogBundle /Resources/views/Blog/list.html.twig #}
720
- {% extends ":: layout.html.twig" %}
713
+ {# app /Resources/views/Blog/list.html.twig #}
714
+ {% extends "layout.html.twig" %}
721
715
722
716
{% block title %}List of Posts{% endblock %}
723
717
0 commit comments