Skip to content

Commit ff55efd

Browse files
Heaven31415javiereguiluz
authored andcommitted
Remove minor bugs from docs.
1 parent 68bde7a commit ff55efd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ and ``redirect()`` methods::
148148
// redirect to a route with parameters
149149
return $this->redirectToRoute('app_lucky_number', array('max' => 10));
150150

151-
// redirects to a route and mantains the original query string parameters
151+
// redirects to a route and maintains the original query string parameters
152152
return $this->redirectToRoute('blog_show', $request->query->all());
153153

154154
// redirects externally

introduction/from_flat_php_to_symfony2.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ of the application are isolated in a new file called ``model.php``::
181181
in this example, only a portion (or none) of the model is actually concerned
182182
with accessing a database.
183183

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::
185185

186186
// index.php
187187
require_once 'model.php';
@@ -262,7 +262,7 @@ an individual blog result based on a given id::
262262
{
263263
$connection = open_database_connection();
264264

265-
$query = 'SELECT created_at, title, body FROM post WHERE id=:id';
265+
$query = 'SELECT created_at, title, body FROM post WHERE id=:id';
266266
$statement = $connection->prepare($query);
267267
$statement->bindValue(':id', $id, PDO::PARAM_INT);
268268
$statement->execute();
@@ -533,7 +533,7 @@ a simple application. Along the way, you've made a simple routing
533533
system and a method using ``ob_start()`` and ``ob_get_clean()`` to render
534534
templates. If, for some reason, you needed to continue building this "framework"
535535
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>`,
537537
which already solve these problems.
538538

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

templating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Throughout this article, template examples will be shown in both Twig and PHP.
125125
Twig can also do things that PHP can't, such as whitespace control,
126126
sandboxing, automatic HTML escaping, manual contextual output escaping,
127127
and the inclusion of custom functions and filters that only affect templates.
128-
Twig contains little features that make writing templates easier and more concise.
128+
Twig contains a lot of features that make writing templates easier and more concise.
129129
Take the following example, which combines a loop with a logical ``if``
130130
statement:
131131

0 commit comments

Comments
 (0)