Skip to content

Commit

Permalink
bug #4095 Fix php template (piotrantosik)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

Fix php template

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets | no

Commits
-------

18d71b1 fix php template
  • Loading branch information
weaverryan committed Aug 6, 2014
2 parents 95c2066 + 18d71b1 commit 234fa36
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 234fa36

Please sign in to comment.