Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 234fa36

Browse filesBrowse files
committed
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
2 parents 95c2066 + 18d71b1 commit 234fa36
Copy full SHA for 234fa36

File tree

Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎book/http_cache.rst‎

Copy file name to clipboardExpand all lines: book/http_cache.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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

Collapse file

‎book/templating.rst‎

Copy file name to clipboardExpand all lines: book/templating.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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
)
Collapse file

‎cookbook/templating/PHP.rst‎

Copy file name to clipboardExpand all lines: cookbook/templating/PHP.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.