Commit d6dc5b67 authored by SpacePossum's avatar SpacePossum Committed by GitHub

Update twig.rst

parent a12c3216
...@@ -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