Skip to content

Commit a1a505b

Browse files
talitakzweaverryan
authored andcommitted
colon corrections
1 parent ef5c0e6 commit a1a505b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A Simple Blog in Flat PHP
2727

2828
In this chapter, you'll build the token blog application using only flat PHP.
2929
To begin, create a single page that displays blog entries that have been
30-
persisted to the database. Writing in flat PHP is quick and dirty::
30+
persisted to the database. Writing in flat PHP is quick and dirty:
3131

3232
.. code-block:: html+php
3333

@@ -103,7 +103,7 @@ the code that prepares the HTML "presentation"::
103103

104104

105105
The HTML code is now stored in a separate file ``templates/list.php``, which
106-
is primarily an HTML file that uses a template-like PHP syntax::
106+
is primarily an HTML file that uses a template-like PHP syntax:
107107

108108
.. code-block:: html+php
109109

@@ -203,7 +203,7 @@ offering various advantages and the opportunity to reuse almost everything
203203
on different pages.
204204

205205
The only part of the code that *can't* be reused is the page layout. Fix
206-
that by creating a new ``templates/layout.php`` file::
206+
that by creating a new ``templates/layout.php`` file:
207207

208208
.. code-block:: html+php
209209

@@ -219,7 +219,7 @@ that by creating a new ``templates/layout.php`` file::
219219
</html>
220220

221221
The template ``templates/list.php`` can now be simplified to "extend"
222-
the ``templates/layout.php``::
222+
the ``templates/layout.php``:
223223

224224
.. code-block:: html+php
225225

@@ -286,7 +286,7 @@ page::
286286
require 'templates/show.php';
287287

288288
Finally, create the new template file - ``templates/show.php`` - to render
289-
the individual blog post::
289+
the individual blog post:
290290

291291
.. code-block:: html+php
292292

@@ -436,7 +436,7 @@ autoloader is a tool that makes it possible to start using PHP classes
436436
without explicitly including the file containing the class.
437437

438438
In your root directory, create a ``composer.json`` file with the following
439-
content::
439+
content:
440440

441441
.. code-block:: json
442442
@@ -591,7 +591,7 @@ also called *actions*. They hold code which creates and returns the appropriate
591591
The two controllers are still lightweight. Each uses the
592592
:doc:`Doctrine ORM library </book/doctrine>` to retrieve objects from the
593593
database and the Templating component to render a template and return a
594-
``Response`` object. The list ``list.php`` template is now quite a bit simpler::
594+
``Response`` object. The list ``list.php`` template is now quite a bit simpler:
595595

596596
.. code-block:: html+php
597597

@@ -614,7 +614,7 @@ database and the Templating component to render a template and return a
614614
<?php endforeach ?>
615615
</ul>
616616

617-
The layout ``layout.php`` is nearly identical::
617+
The layout ``layout.php`` is nearly identical:
618618

619619
.. code-block:: html+php
620620

@@ -640,7 +640,7 @@ The layout ``layout.php`` is nearly identical::
640640
When Symfony's engine (called the :term:`Kernel`) boots up, it needs a map so
641641
that it knows which controllers to execute based on the request information.
642642
A routing configuration map ``app/config/routing.yml`` provides this information
643-
in a readable format::
643+
in a readable format:
644644

645645
.. code-block:: yaml
646646
@@ -687,7 +687,7 @@ If you choose to use it, Symfony comes standard with a templating engine
687687
called `Twig`_ that makes templates faster to write and easier to read.
688688
It means that the sample application could contain even less code! Take,
689689
for example, rewriting ``list.html.php`` template in Twig would look like
690-
this::
690+
this:
691691

692692
.. code-block:: html+twig
693693

@@ -709,7 +709,7 @@ this::
709709
</ul>
710710
{% endblock %}
711711

712-
And rewriting ``layout.html.php`` template in Twig would look like this::
712+
And rewriting ``layout.html.php`` template in Twig would look like this:
713713

714714
.. code-block:: html+twig
715715

book/http_fundamentals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ A Symfony Request in Action
467467

468468
Without diving into too much detail, here is this process in action. Suppose
469469
you want to add a ``/contact`` page to your Symfony application. First, start
470-
by adding an entry for ``/contact`` to your routing configuration file:
470+
by adding an entry for ``/contact`` to your routing configuration file::
471471

472472
.. configuration-block::
473473

0 commit comments

Comments
 (0)