Skip to content

Commit 18d71b1

Browse files
committed
fix php template
1 parent 01fb9f2 commit 18d71b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

book/http_cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ matter), Symfony2 uses the standard ``render`` helper to configure ESI tags:
915915
.. code-block:: html+php
916916

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

book/templating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ string syntax for controllers (i.e. **bundle**:**controller**:**action**):
658658
<!-- ... -->
659659
<div id="sidebar">
660660
<?php echo $view['actions']->render(
661-
new ControllerReference(
661+
new \Symfony\Component\HttpKernel\Controller\ControllerReference(
662662
'AcmeArticleBundle:Article:recentArticles',
663663
array('max' => 3)
664664
)

cookbook/templating/PHP.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ If you create a ``fancy`` action, and want to include it into the
229229

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

0 commit comments

Comments
 (0)