Skip to content

Fix php template #4095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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