@@ -181,7 +181,7 @@ of the application are isolated in a new file called ``model.php``::
181
181
in this example, only a portion (or none) of the model is actually concerned
182
182
with accessing a database.
183
183
184
- The controller (``index.php ``) is now is just a few lines of code::
184
+ The controller (``index.php ``) is now just a few lines of code::
185
185
186
186
// index.php
187
187
require_once 'model.php';
@@ -262,7 +262,7 @@ an individual blog result based on a given id::
262
262
{
263
263
$connection = open_database_connection();
264
264
265
- $query = 'SELECT created_at, title, body FROM post WHERE id=:id';
265
+ $query = 'SELECT created_at, title, body FROM post WHERE id=:id';
266
266
$statement = $connection->prepare($query);
267
267
$statement->bindValue(':id', $id, PDO::PARAM_INT);
268
268
$statement->execute();
@@ -533,7 +533,7 @@ a simple application. Along the way, you've made a simple routing
533
533
system and a method using ``ob_start() `` and ``ob_get_clean() `` to render
534
534
templates. If, for some reason, you needed to continue building this "framework"
535
535
from scratch, you could at least use Symfony's standalone
536
- :doc: `Routing </components/routing >` and component and :doc: `Twig </templating >`,
536
+ :doc: `Routing </components/routing >` component and :doc: `Twig </templating >`,
537
537
which already solve these problems.
538
538
539
539
Instead of re-solving common problems, you can let Symfony take care of
0 commit comments