Permalink
Browse files

bug #4095 Fix php template (piotrantosik)

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 234fa364612d70da60ad3cb997fca0123db473e6
Showing with 3 additions and 3 deletions.
  1. +1 −1 book/http_cache.rst
  2. +1 −1 book/templating.rst
  3. +1 −1 cookbook/templating/PHP.rst
@@ -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'))
?>
@@ -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)
)
@@ -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',
))

0 comments on commit 234fa36

Please sign in to comment.