File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -938,6 +938,19 @@ wondering why you would want to use a helper instead of just writing the ESI
938938tag yourself. That's because using a helper makes your application work even
939939if there is no gateway cache installed.
940940
941+ .. tip ::
942+
943+ Using render_esi with parameters doesn't use request variables - they are
944+ passed in as named parameters. They must be named the same.
945+
946+ e.g. ``render_esi(controller('...:content', { max_per_page: 5, type: 'news' } ``
947+
948+ .. code-block :: php
949+
950+ public function content($max_per_page = 10, $type = "news")
951+ {
952+
953+
941954 When using the default ``render `` function (or setting the renderer to
942955``inline ``), Symfony merges the included page content into the main one
943956before sending the response to the client. But if you use the ``esi `` renderer
You can’t perform that action at this time.
0 commit comments