Skip to content

Commit 9c50c2d

Browse files
committed
Fixed wrong references
1 parent 078faba commit 9c50c2d

File tree

9 files changed

+21
-18
lines changed

9 files changed

+21
-18
lines changed

components/templating.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Usage
2828
.. seealso::
2929

3030
This article explains how to use the Templating features as an independent
31-
component in any PHP application. Read the :doc:`/templating` article to
32-
learn about how to work with templates in Symfony applications.
31+
component in any PHP application. Read the article about :doc:`templates </templates>`
32+
to learn about how to work with templates in Symfony applications.
3333

3434
The :class:`Symfony\\Component\\Templating\\PhpEngine` class is the entry point
3535
of the component. It needs a
@@ -211,5 +211,5 @@ Learn More
211211
:glob:
212212

213213
/components/templating/*
214-
/templating
214+
/templates
215215
/templating/*

controller.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ object for you::
179179
return $this->render('lucky/number.html.twig', ['number' => $number]);
180180

181181
Templating and Twig are explained more in the
182-
:doc:`Creating and Using Templates article </templating>`.
182+
:doc:`Creating and Using Templates article </templates>`.
183183

184184
.. index::
185185
single: Controller; Accessing services
@@ -651,15 +651,15 @@ handle caching and more.
651651
Keep Going!
652652
-----------
653653

654-
Next, learn all about :doc:`rendering templates with Twig </templating>`.
654+
Next, learn all about :doc:`rendering templates with Twig </templates>`.
655655

656656
Learn more about Controllers
657657
----------------------------
658658

659659
.. toctree::
660660
:hidden:
661661

662-
templating
662+
templates
663663

664664
.. toctree::
665665
:maxdepth: 1

getting_started/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ Getting Started
88
/page_creation
99
/routing
1010
/controller
11-
/templating
11+
/templates
1212
/configuration

introduction/from_flat_php_to_symfony.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ a simple application. Along the way, you've made a simple routing
532532
system and a method using ``ob_start()`` and ``ob_get_clean()`` to render
533533
templates. If, for some reason, you needed to continue building this "framework"
534534
from scratch, you could at least use Symfony's standalone
535-
:doc:`Routing </components/routing>` component and :doc:`Twig </templating>`,
535+
:doc:`Routing </components/routing>` component and :doc:`Twig </templates>`,
536536
which already solve these problems.
537537

538538
Instead of re-solving common problems, you can let Symfony take care of

mailer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ create an event subscriber to set it automatically::
291291
Twig: HTML & CSS
292292
----------------
293293

294-
The Mime component integrates with the :doc:`Twig template engine </templating>`
294+
The Mime component integrates with the :ref:`Twig template engine <twig-language>`
295295
to provide advanced features such as CSS style inlining and support for HTML/CSS
296296
frameworks to create complex HTML email messages. First, make sure Twig is installed:
297297

page_creation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ Now you may wonder where the Web Debug Toolbar has gone: that's because there is
251251
no ``</body>`` tag in the current template. You can add the body element yourself,
252252
or extend ``base.html.twig``, which contains all default HTML elements.
253253

254-
In the :doc:`/templating` article, you'll learn all about Twig: how to loop, render
255-
other templates and leverage its powerful layout inheritance system.
254+
In the :doc:`templates </templates>` article, you'll learn all about Twig: how
255+
to loop, render other templates and leverage its powerful layout inheritance system.
256256

257257
Checking out the Project Structure
258258
----------------------------------
@@ -304,7 +304,7 @@ Ok, time to finish mastering the fundamentals by reading these articles:
304304

305305
* :doc:`/routing`
306306
* :doc:`/controller`
307-
* :doc:`/templating`
307+
* :doc:`/templates`
308308
* :doc:`/configuration`
309309

310310
Then, learn about other important topics like the

reference/configuration/twig.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Twig Configuration Reference (TwigBundle)
55
=========================================
66

77
The TwigBundle integrates the Twig library in Symfony applications to
8-
:doc:`render templates </templating>`. All these options are configured under
9-
the ``twig`` key in your application configuration.
8+
:ref:`render templates <templates-rendering>`. All these options are configured
9+
under the ``twig`` key in your application configuration.
1010

1111
.. code-block:: terminal
1212

routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ the :class:`Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface` class
19011901
Generating URLs in Templates
19021902
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19031903

1904-
The Twig template language used in :doc:`Symfony templates </templating>`
1904+
The Twig template language used in :doc:`Symfony templates </templates>`
19051905
provides some functions to generate both relative and absolute URLs:
19061906

19071907
.. code-block:: html+twig

templates.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Creating and Using Templates
77
A template is a text file that can generate any text-based format (HTML, XML,
88
CSV, etc.). For example, in a web application that displays some news, you can
99
create a text file (e.g. ``news.php``) with the HTML structure and PHP logic of
10-
all news pages. Then, a :doc:`Symfony controller </controllers>` can *render*
10+
all news pages. Then, a :doc:`Symfony controller </controller>` can *render*
1111
that ``news.php`` template passing the contents of each news to generate the
1212
resulting HTML contents sent to the user.
1313

@@ -64,7 +64,7 @@ available by default. In Symfony applications you can also use these
6464
:doc:`Twig filters and functions defined by Symfony </reference/twig_reference>`
6565
and you can :doc:`create your own Twig filters and functions </templating/twig_extension>`.
6666

67-
Twig is fast in the ``prod`` :doc:`environment <configuration-environments>`
67+
Twig is fast in the ``prod`` :ref:`environment <configuration-environments>`
6868
(because templates are compiled into PHP and cached automatically), but
6969
convenient to use in the ``dev`` environment (because templates are recompiled
7070
automatically when you change them).
@@ -189,6 +189,7 @@ Consider the following routing configuration:
189189
}
190190
191191
.. code-block:: yaml
192+
192193
# config/routes.yaml
193194
blog_index:
194195
path: /
@@ -338,7 +339,7 @@ gives you access to these variables:
338339
or a regular request).
339340
``app.session``
340341
The :class:`Symfony\\Component\\HttpFoundation\\Session\\Session` object that
341-
represents the current :doc:`user's session </sessions>` or ``null`` if there is none.
342+
represents the current :doc:`user's session </session>` or ``null`` if there is none.
342343
``app.flashes``
343344
An array of all the :ref:`flash messages <flash-messages>` stored in the session.
344345
You can also get only the messages of some type (e.g. ``app.flashes('notice')``).
@@ -356,6 +357,8 @@ gives you access to these variables:
356357
In addition to the global ``app`` variable injected by Symfony, you can also
357358
:doc:`inject variables automatically to all Twig templates </templating/global_variables>`.
358359

360+
.. _templates-rendering:
361+
359362
Rendering Templates
360363
-------------------
361364

0 commit comments

Comments
 (0)