We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 865e476 commit 21e528fCopy full SHA for 21e528f
templates.rst
@@ -401,12 +401,8 @@ use the ``render()`` helper::
401
{
402
// ...
403
404
- // pass the template path to render
405
- return $this->render('product/index.html.twig');
406
-
407
- // the second optional argument is an array of variables passed to the template
408
return $this->render('product/index.html.twig', [
409
- 'categories' => '...',
+ 'category' => '...',
410
'promotions' => ['...', '...'],
411
]);
412
}
@@ -441,7 +437,7 @@ the :class:`Twig\Environment` class::
441
437
442
438
443
439
$htmlContents = $this->twig->render('product/index.html.twig', [
444
440
445
446
447
0 commit comments