File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ below renders the ``index.html.php`` template::
52
52
// src/Acme/HelloBundle/Controller/HelloController.php
53
53
54
54
// ...
55
-
56
55
public function indexAction($name)
57
56
{
58
57
return $this->render('AcmeHelloBundle:Hello:index.html.php', array('name' => $name));
@@ -226,10 +225,12 @@ If you create a ``fancy`` action, and want to include it into the
226
225
.. code-block :: html+php
227
226
228
227
<!-- src/Acme/HelloBundle/Resources/views/Hello/index.html.php -->
229
- <?php echo $view['actions']->render('AcmeHelloBundle:Hello: fancy', array(
230
- 'name' => $name,
231
- 'color' => 'green'
232
- )) ?>
228
+ <?php echo $view['actions']->render(
229
+ new ControllerReference('AcmeHelloBundle:Hello: fancy', array(
230
+ 'name' => $name,
231
+ 'color' => 'green',
232
+ ))
233
+ ) ?>
233
234
234
235
Here, the ``AcmeHelloBundle:Hello:fancy `` string refers to the ``fancy `` action of the
235
236
``Hello `` controller::
You can’t perform that action at this time.
0 commit comments