Skip to content

Commit 6254bfc

Browse files
guidokritzweaverryan
authored andcommitted
Fix renderer option when embedding an ESI in a PHP template.
1 parent 7797018 commit 6254bfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/http_cache.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,12 +904,12 @@ matter), Symfony2 uses the standard ``render`` helper to configure ESI tags:
904904

905905
<?php echo $view['actions']->render(
906906
new ControllerReference('...:news', array('max' => 5)),
907-
array('renderer' => 'esi'))
907+
array('strategy' => 'esi'))
908908
?>
909909

910910
<?php echo $view['actions']->render(
911911
$view['router']->generate('latest_news', array('max' => 5), true),
912-
array('renderer' => 'esi'),
912+
array('strategy' => 'esi'),
913913
) ?>
914914

915915
By using the ``esi`` renderer (via the ``render_esi`` Twig function), you

0 commit comments

Comments
 (0)