@@ -27,7 +27,7 @@ A Simple Blog in Flat PHP
2727
2828In this chapter, you'll build the token blog application using only flat PHP.
2929To 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
105105The 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
203203on different pages.
204204
205205The 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
221221The 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
288288Finally, 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
436436without explicitly including the file containing the class.
437437
438438In 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
591591The two controllers are still lightweight. Each uses the
592592:doc: `Doctrine ORM library </book/doctrine >` to retrieve objects from the
593593database 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::
640640When Symfony's engine (called the :term: `Kernel `) boots up, it needs a map so
641641that it knows which controllers to execute based on the request information.
642642A 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
687687called `Twig `_ that makes templates faster to write and easier to read.
688688It means that the sample application could contain even less code! Take,
689689for 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
0 commit comments