Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few minor tweaks #7028

Merged
merged 1 commit into from
Oct 6, 2016
Merged
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
6 changes: 3 additions & 3 deletions configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ There are *two* ways to know *what* keys you can configure:

#. Use the :doc:`Reference Section </reference/index>`;

#. Use the ``config:dump`` command;
#. Use the ``config:dump-reference`` command.

For example, if you want to configure something in Twig, you can see an example
dump of all available configuration options by running:

.. code-block:: terminal

$ php app/console config:dump twig
$ php app/console config:dump-reference twig

.. index::
single: Environments; Introduction
Expand Down Expand Up @@ -183,7 +183,7 @@ can also load XML files or PHP files.

.. _config-parameter-intro:

The parameters key: Parameters (Variables)
The parameters Key: Parameters (Variables)
------------------------------------------

Another special key is called ``parameters``: it's used to define *variables* that
Expand Down
10 changes: 5 additions & 5 deletions templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ Creating links to other pages in your application is one of the most common
jobs for a template. Instead of hardcoding URLs in templates, use the ``path``
Twig function (or the ``router`` helper in PHP) to generate URLs based on
the routing configuration. Later, if you want to modify the URL of a particular
page, all you'll need to do is change the routing configuration; the templates
page, all you'll need to do is change the routing configuration: the templates
will automatically generate the new URL.

First, link to the "_welcome" page, which is accessible via the following routing
Expand Down Expand Up @@ -706,7 +706,7 @@ route:

In this case, you need to specify both the route name (``article_show``) and
a value for the ``{slug}`` parameter. Using this route, revisit the
``recent_list`` template from the previous section and link to the articles
``recent_list.html.twig`` template from the previous section and link to the articles
correctly:

.. configuration-block::
Expand Down Expand Up @@ -905,14 +905,14 @@ block of the base template.

You can also include assets located in your bundles' ``Resources/public`` folder.
You will need to run the ``php app/console assets:install target [--symlink]``
command, which moves (or symlinks) files into the correct location. (target
command, which copies (or symlinks) files into the correct location. (target
is by default "web").

.. code-block:: html+twig

<link href="{{ asset('bundles/acmedemo/css/contact.css') }}" rel="stylesheet" />

The end result is a page that includes both the ``main.css`` and ``contact.css``
The end result is a page that includes ``main.js`` and both the ``main.css`` and ``contact.css``
stylesheets.

Referencing the Request, User or Session
Expand All @@ -934,7 +934,7 @@ Suppose ``description`` equals ``I <3 this product``:
.. code-block:: twig

<!-- output escaping is on automatically -->
{{ description }} <!-- I &lt3 this product -->
{{ description }} <!-- I &lt;3 this product -->

<!-- disable output escaping with the raw filter -->
{{ description|raw }} <!-- I <3 this product -->
Expand Down