Skip to content

Commit

Permalink
fix php template
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrantosik committed Aug 5, 2014
1 parent 01fb9f2 commit 18d71b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion book/http_cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ matter), Symfony2 uses the standard ``render`` helper to configure ESI tags:
.. code-block:: html+php

<?php echo $view['actions']->render(
new ControllerReference('...:news', array('max' => 5)),
new \Symfony\Component\HttpKernel\Controller\ControllerReference('...:news', array('max' => 5)),
array('strategy' => 'esi'))
?>

Expand Down
2 changes: 1 addition & 1 deletion book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ string syntax for controllers (i.e. **bundle**:**controller**:**action**):
<!-- ... -->
<div id="sidebar">
<?php echo $view['actions']->render(
new ControllerReference(
new \Symfony\Component\HttpKernel\Controller\ControllerReference(
'AcmeArticleBundle:Article:recentArticles',
array('max' => 3)
)
Expand Down
2 changes: 1 addition & 1 deletion cookbook/templating/PHP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ If you create a ``fancy`` action, and want to include it into the

<!-- src/Acme/HelloBundle/Resources/views/Hello/index.html.php -->
<?php echo $view['actions']->render(
new ControllerReference('AcmeHelloBundle:Hello:fancy', array(
new \Symfony\Component\HttpKernel\Controller\ControllerReference('AcmeHelloBundle:Hello:fancy', array(
'name' => $name,
'color' => 'green',
))
Expand Down

0 comments on commit 18d71b1

Please sign in to comment.