Commit 59fb2562 authored by Fabien Potencier's avatar Fabien Potencier

minor #1453 twig.rst Add missing trait method to doc (SpacePossum)

This PR was merged into the 1.3 branch.

Discussion
----------

twig.rst Add missing trait method to doc

Commits
-------

d6dc5b67 Update twig.rst
parents a12c3216 d6dc5b67
...@@ -152,6 +152,12 @@ Traits ...@@ -152,6 +152,12 @@ Traits
return $app->render('index.html', ['name' => 'Fabien'], new StreamedResponse()); return $app->render('index.html', ['name' => 'Fabien'], new StreamedResponse());
* **renderView**: Renders a view with the given parameters and returns a string.
.. code-block:: php
$content = $app->renderView('index.html', ['name' => 'Fabien']);
Customization Customization
------------- -------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment