Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0380d34

Browse filesBrowse files
committed
minor #4447 [Book] tweaks to #4427 (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [Book] tweaks to #4427 | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | Applied tweaks suggested by @javiereguiluz. Commits ------- caf927f tweaks to #4427
2 parents 8c2d837 + caf927f commit 0380d34
Copy full SHA for 0380d34

File tree

Expand file treeCollapse file tree

2 files changed

+11
-11
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+11
-11
lines changed

‎book/routing.rst

Copy file name to clipboardExpand all lines: book/routing.rst
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ entries? Update the route to have a new ``{page}`` placeholder:
410410
.. code-block:: php-annotations
411411
412412
// src/AppBundle/Controller/BlogController.php
413-
413+
414414
// ...
415415
416416
/**
@@ -470,7 +470,7 @@ This is done by including it in the ``defaults`` collection:
470470
.. code-block:: php-annotations
471471
472472
// src/AppBundle/Controller/BlogController.php
473-
473+
474474
// ...
475475
476476
/**
@@ -555,7 +555,7 @@ Take a quick look at the routes that have been created so far:
555555
.. code-block:: php-annotations
556556
557557
// src/AppBundle/Controller/BlogController.php
558-
558+
559559
// ...
560560
class BlogController extends Controller
561561
{
@@ -738,7 +738,7 @@ URL:
738738
.. code-block:: php-annotations
739739
740740
// src/AppBundle/Controller/MainController.php
741-
741+
742742
// ...
743743
class MainController extends Controller
744744
{
@@ -1283,8 +1283,8 @@ suppose you want to prefix all routes in the AppBundle with ``/site`` (e.g.
12831283
12841284
return $collection;
12851285
1286-
The string ``/site`` will now be prepended to the path of each route loaded
1287-
from the new routing resource.
1286+
The path of each route being loaded from the new routing resource will now
1287+
be prefixed with the string ``/site``.
12881288

12891289
Adding a Host Requirement to Imported Routes
12901290
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

‎book/templating.rst

Copy file name to clipboardExpand all lines: book/templating.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ By default, templates can live in two different locations:
387387
third party bundle templates (see :ref:`overriding-bundle-templates`);
388388

389389
* ``path/to/bundle/Resources/views/``: Each third party bundle houses its
390-
templates in its ``Resources/views`` directory (and subdirectories). When you
390+
templates in its ``Resources/views/`` directory (and subdirectories). When you
391391
plan to share your bundle, you should put the templates in the bundle instead
392392
of the ``app/`` directory.
393393

@@ -435,8 +435,8 @@ directory. This gives the power to override templates from any vendor bundle.
435435

436436
.. tip::
437437

438-
Hopefully the template naming syntax looks familiar - it's similair to the
439-
naming convention used to refer to :ref:`controller-string-syntax`.
438+
Hopefully the template naming syntax looks familiar - it's similar to
439+
the naming convention used to refer to :ref:`controller-string-syntax`.
440440

441441
Template Suffix
442442
~~~~~~~~~~~~~~~
@@ -1353,7 +1353,7 @@ covered:
13531353
{% endblock %}
13541354

13551355
Notice that this template extends the section template (``Blog/layout.html.twig``)
1356-
which in-turn extends the base application layout (``base.html.twig``). This is
1356+
which in turn extends the base application layout (``base.html.twig``). This is
13571357
the common three-level inheritance model.
13581358

13591359
When building your application, you may choose to follow this method or simply
@@ -1466,7 +1466,7 @@ Debugging
14661466

14671467
When using PHP, you can use :phpfunction:`var_dump` if you need to quickly find
14681468
the value of a variable passed. This is useful, for example, inside your
1469-
controller. The same can be achieved when using Twig thanks to the debug
1469+
controller. The same can be achieved when using Twig thanks to the Debug
14701470
extension.
14711471

14721472
Template parameters can then be dumped using the ``dump`` function:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.