Skip to content

Commit bd7fab4

Browse files
committed
Minor files for the controllers article
1 parent f3b4382 commit bd7fab4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

controller.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Controller
77
A controller is a PHP function you create that reads information from the Symfony's
88
``Request`` object and creates and returns a ``Response`` object. The response could
99
be an HTML page, JSON, XML, a file download, a redirect, a 404 error or anything
10-
else you can dream up. The controller contains whatever arbitrary logic
10+
else you can dream up. The controller executes whatever arbitrary logic
1111
*your application* needs to render the content of a page.
1212

1313
See how simple this is by looking at a Symfony controller in action.
@@ -174,10 +174,10 @@ and ``redirect()`` methods::
174174

175175
// do a permanent - 301 redirect
176176
return $this->redirectToRoute('homepage', array(), 301);
177-
177+
178178
// redirect to a route with parameters
179179
return $this->redirectToRoute('blog_show', array('slug' => 'my-page'));
180-
180+
181181
// redirect externally
182182
return $this->redirect('http://symfony.com/doc');
183183
}
@@ -419,7 +419,7 @@ read any flash messages from the session:
419419

420420
.. code-block:: html+twig
421421

422-
{# app/Resources/views.base.html.twig #}
422+
{# app/Resources/views/base.html.twig #}
423423
{% for flash_message in app.session.flashBag.get('notice') %}
424424
<div class="flash-notice">
425425
{{ flash_message }}
@@ -541,7 +541,7 @@ this gives two things:
541541

542542
A) Shortcut methods (like ``render()`` and ``redirectToRoute``);
543543

544-
B) Access to *all* of the useful objects (services) in the system via the
544+
B) Access to *all* of the useful objects (services) in the system via the
545545
:ref:`get() <controller-accessing-services>` method.
546546

547547
In other chapters, you'll learn how to use specific services from inside your controller

0 commit comments

Comments
 (0)