@@ -50,7 +50,7 @@ make sure that your system meets all the technical requirements:
50
50
$ cd myproject/
51
51
$ php app/check.php
52
52
53
- Fix any error reported by the command and then, use the PHP built-in web server
53
+ Fix any error reported by the command and then use the PHP built-in web server
54
54
to run Symfony:
55
55
56
56
.. code-block :: bash
@@ -59,12 +59,12 @@ to run Symfony:
59
59
60
60
If you get the error `There are no commands defined in the "server" namespace. `,
61
61
then you are probably using PHP 5.3. That's ok! But the built-in web server is
62
- available for PHP 5.4.0 or higher. If you have an older version of PHP or if you
63
- prefer a traditional web server such as Apache or Nginx, read the
62
+ only available for PHP 5.4.0 or higher. If you have an older version of PHP or
63
+ if you prefer a traditional web server such as Apache or Nginx, read the
64
64
:doc: `/cookbook/configuration/web_server_configuration ` article.
65
65
66
- Open your browser and access to the ``http://localhost:8000 `` URL to
67
- see the Welcome page of Symfony2:
66
+ Open your browser and access the ``http://localhost:8000 `` URL to see the
67
+ Welcome page of Symfony2:
68
68
69
69
.. image :: /images/quick_tour/welcome.png
70
70
:align: center
@@ -73,7 +73,7 @@ see the Welcome page of Symfony2:
73
73
Understanding the Fundamentals
74
74
------------------------------
75
75
76
- One of the main goals of a framework is to keep your code organized and allow
76
+ One of the main goals of a framework is to keep your code organized and to allow
77
77
your application to evolve easily over time by avoiding the mixing of database
78
78
calls, HTML tags and business logic in the same script. To achieve this goal
79
79
with Symfony, you'll first need to learn a few fundamental concepts and terms.
@@ -141,8 +141,8 @@ will be executed. In the next section, you'll learn exactly what that means.
141
141
.. tip ::
142
142
143
143
In addition to YAML files, routes can be configured in XML or PHP files
144
- and even embedded in PHP annotations. This flexibility is one of the main
145
- features of Symfony2, a framework that never imposes a particular
144
+ and can even be embedded in PHP annotations. This flexibility is one of the
145
+ main features of Symfony2, a framework that never imposes a particular
146
146
configuration format on you.
147
147
148
148
Controllers
@@ -151,8 +151,8 @@ Controllers
151
151
A controller is a PHP function or method that handles incoming *requests * and
152
152
returns *responses * (often HTML code). Instead of using the PHP global variables
153
153
and functions (like ``$_GET `` or ``header() ``) to manage these HTTP messages,
154
- Symfony uses objects: :ref: `Request<component-http-foundation-request> `
155
- and :ref: `Response<component-http-foundation-response> `. The simplest possible
154
+ Symfony uses objects: :ref: `Request <component-http-foundation-request >`
155
+ and :ref: `Response <component-http-foundation-response >`. The simplest possible
156
156
controller might create the response by hand, based on the request::
157
157
158
158
use Symfony\Component\HttpFoundation\Response;
@@ -318,17 +318,17 @@ environment.
318
318
319
319
.. _quick-tour-big-picture-environments-intro :
320
320
321
- What * is * an environment?
322
- ~~~~~~~~~~~~~~~~~~~~~~~~~
321
+ What Is an environment?
322
+ ~~~~~~~~~~~~~~~~~~~~~~~
323
323
324
- An :term: `Environment ` represents a group of configuration that's used to run
324
+ An :term: `Environment ` represents a group of configurations that's used to run
325
325
your application. Symfony2 defines two environments by default: ``dev ``
326
326
(suited for when developing the application locally) and ``prod `` (optimized
327
327
for when executing the application on production).
328
328
329
329
Typically, the environments share a large amount of configuration options. For
330
330
that reason, you put your common configuration in ``config.yml `` and override
331
- where necessary in the specific configuration file for each environment:
331
+ the specific configuration file for each environment where necessary :
332
332
333
333
.. code-block :: yaml
334
334
@@ -354,16 +354,18 @@ URL, you'll get a 404 error.
354
354
355
355
.. tip ::
356
356
357
- If instead of using PHP built-in webserver, you use Apache with ``mod_rewrite ``
358
- enabled and take advantage of the ``.htaccess `` file Symfony2 provides
359
- in ``web/ ``, you can even omit the ``app.php `` part of the URL. The default
360
- ``.htaccess `` points all requests to the ``app.php `` front controller:
357
+ If instead of using PHP's built-in webserver, you use Apache with
358
+ ``mod_rewrite `` enabled and take advantage of the ``.htaccess `` file
359
+ Symfony2 provides in ``web/ ``, you can even omit the ``app.php `` part of the
360
+ URL. The default ``.htaccess `` points all requests to the ``app.php `` front
361
+ controller:
361
362
362
363
.. code-block :: text
363
364
364
365
http://localhost/demo/hello/Fabien
365
366
366
- For more details on environments, see ":ref: `Environments & Front Controllers<page-creation-environments> `" article.
367
+ For more details on environments, see
368
+ ":ref: `Environments & Front Controllers <page-creation-environments >`" article.
367
369
368
370
Final Thoughts
369
371
--------------
0 commit comments