@@ -301,8 +301,7 @@ of writing the HTML inside the controller, render a template instead:
301
301
302
302
In order to use the :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller::render `
303
303
method, your controller must extend the
304
- :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller ` class
305
- (API docs: :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller `),
304
+ :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller ` class,
306
305
which adds shortcuts for tasks that are common inside controllers. This
307
306
is done in the above example by adding the ``use `` statement on line 4
308
307
and then extending ``Controller `` on line 6.
@@ -971,21 +970,21 @@ hopefully discovered how easy and flexible it can be. And while there are
971
970
in mind:
972
971
973
972
* Creating a page is a three-step process involving a **route **, a **controller **
974
- And (optionally) a **template **;
973
+ and (optionally) a **template **;
975
974
976
975
* Each project contains just a few main directories: ``web/ `` (web assets and
977
- The front controllers), ``app/ `` (configuration), ``src/ `` (your bundles),
978
- And ``vendor/ `` (third-party code) (there's also a ``bin/ `` directory that's
979
- Used to help updated vendor libraries);
976
+ the front controllers), ``app/ `` (configuration), ``src/ `` (your bundles),
977
+ and ``vendor/ `` (third-party code) (there's also a ``bin/ `` directory that's
978
+ used to help updated vendor libraries);
980
979
981
980
* Each feature in Symfony2 (including the Symfony2 framework core) is organized
982
- Into a *bundle *, which is a structured set of files for that feature;
981
+ into a *bundle *, which is a structured set of files for that feature;
983
982
984
983
* The **configuration ** for each bundle lives in the ``Resources/config ``
985
- Directory of the bundle and can be specified in YAML, XML or PHP;
984
+ directory of the bundle and can be specified in YAML, XML or PHP;
986
985
987
986
* The global **application configuration ** lives in the ``app/config ``
988
- Directory ;
987
+ directory ;
989
988
990
989
* Each **environment ** is accessible via a different front controller (e.g.
991
990
``app.php `` and ``app_dev.php ``) and loads a different configuration file.
0 commit comments