Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ the following guidelines in mind while you develop.

* **Not all routing parameters need to be arguments on your controller**

If, for example, the ``last_name`` weren't important for your controller,
If, for example, the ``last_name`` is not important for your controller,
you could omit it entirely::

public function indexAction($first_name, $color)
Expand Down Expand Up @@ -686,7 +686,7 @@ the ``notice`` message:

.. code-block:: php

<?php foreach ($view['session']->getFlash('notice') as $message): ?>
<?php foreach ($view['session']->getFlashBag()->get('notice') as $message): ?>
<div class="flash-notice">
<?php echo "<div class='flash-error'>$message</div>" ?>
</div>
Expand Down
7 changes: 5 additions & 2 deletions book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1340,8 +1340,11 @@ is being escaped for HTML output.
In some cases, you'll need to disable output escaping when you're rendering
a variable that is trusted and contains markup that should not be escaped.
Suppose that administrative users are able to write articles that contain
HTML code. By default, Twig will escape the article body. To render it normally,
add the ``raw`` filter: ``{{ article.body|raw }}``.
HTML code. By default, Twig will escape the article body.

To render it normally, add the ``raw`` filter:

``{{ article.body|raw }}``.

You can also disable output escaping inside a ``{% block %}`` area or
for an entire template. For more information, see `Output Escaping`_ in
Expand Down