diff --git a/book/controller.rst b/book/controller.rst
index 6089eb7bdd9..192d7d15a2e 100644
--- a/book/controller.rst
+++ b/book/controller.rst
@@ -73,7 +73,7 @@ maps a URL to that controller (#2).
.. note::
Though similarly named, a "front controller" is different from the
- "controllers" we'll talk about in this chapter. A front controller
+ "controllers" talked about in this chapter. A front controller
is a short PHP file that lives in your web directory and through which
all requests are directed. A typical application will have a production
front controller (e.g. ``app.php``) and a development front controller
@@ -324,7 +324,7 @@ working with forms, for example::
public function updateAction(Request $request)
{
$form = $this->createForm(...);
-
+
$form->bindRequest($request);
// ...
}
@@ -441,7 +441,7 @@ object that's returned from that controller::
));
// ... further modify the response or return it directly
-
+
return $response;
}
@@ -470,7 +470,7 @@ value to each variable.
a shortcut for core Symfony2 functionality. A forward can be accomplished
directly via the ``http_kernel`` service. A forward returns a ``Response``
object::
-
+
$httpKernel = $this->container->get('http_kernel');
$response = $httpKernel->forward('AcmeHelloBundle:Hello:fancy', array(
'name' => $name,
@@ -509,7 +509,7 @@ The Symfony templating engine is explained in great detail in the
The ``renderView`` method is a shortcut to direct use of the ``templating``
service. The ``templating`` service can also be used directly::
-
+
$templating = $this->get('templating');
$content = $templating->render('AcmeHelloBundle:Hello:index.html.twig', array('name' => $name));
@@ -662,7 +662,7 @@ the ``notice`` message:
{% endif %}
.. code-block:: php
-
+
hasFlash('notice')): ?>
getFlash('notice') ?>
@@ -686,7 +686,7 @@ headers and content that's sent back to the client::
// create a simple Response with a 200 status code (the default)
$response = new Response('Hello '.$name, 200);
-
+
// create a JSON-response with a 200 status code
$response = new Response(json_encode(array('name' => $name)));
$response->headers->set('Content-Type', 'application/json');
diff --git a/book/from_flat_php_to_symfony2.rst b/book/from_flat_php_to_symfony2.rst
index b825a29848b..c0448af1f0d 100644
--- a/book/from_flat_php_to_symfony2.rst
+++ b/book/from_flat_php_to_symfony2.rst
@@ -11,7 +11,7 @@ better software than with flat PHP, you'll see for yourself.
In this chapter, you'll write a simple application in flat PHP, and then
refactor it to be more organized. You'll travel through time, seeing the
decisions behind why web development has evolved over the past several years
-to where it is now.
+to where it is now.
By the end, you'll see how Symfony2 can rescue you from mundane tasks and
let you take back control of your code.
@@ -134,7 +134,7 @@ to the area of *your* code that processes user input and prepares the response.
In this case, our controller prepares data from the database and then includes
a template to present that data. With the controller isolated, you could
easily change *just* the template file if you needed to render the blog
-entries in some other format (e.g. ``list.json.php`` for JSON format).
+entries in some other format (e.g. ``list.json.php`` for JSON format).
Isolating the Application (Domain) Logic
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -532,7 +532,7 @@ The Sample Application in Symfony2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The blog has come a *long* way, but it still contains a lot of code for such
-a simple application. Along the way, we've also invented a simple routing
+a simple application. Along the way, you've made a simple routing
system and a method using ``ob_start()`` and ``ob_get_clean()`` to render
templates. If, for some reason, you needed to continue building this "framework"
from scratch, you could at least use Symfony's standalone `Routing`_ and
@@ -564,7 +564,7 @@ them for you. Here's the same sample application, now built in Symfony2::
->getRepository('AcmeBlogBundle:Post')
->find($id)
;
-
+
if (!$post) {
// cause the 404 page not found to be displayed
throw $this->createNotFoundException();
@@ -581,7 +581,7 @@ now quite a bit simpler:
.. code-block:: html+php
-
+
extend('::layout.html.php') ?>
set('title', 'List of Posts') ?>
@@ -614,7 +614,7 @@ The layout is nearly identical:
.. note::
- We'll leave the show template as an exercise, as it should be trivial to
+ The show template is left as an exercise, as it should be trivial to
create based on the list template.
When Symfony2's engine (called the ``Kernel``) boots up, it needs a map so
@@ -730,8 +730,8 @@ The corresponding ``layout.html.twig`` template is also easier to write: