@@ -28,7 +28,7 @@ Configuring the Database
28
28
~~~~~~~~~~~~~~~~~~~~~~~~
29
29
30
30
Before you can start, you'll need to configure your database connection
31
- information. By convention, this information is usually configured in an
31
+ information. By convention, this information is usually configured in an
32
32
``app/config/parameters.ini `` file:
33
33
34
34
.. code-block :: ini
@@ -42,20 +42,17 @@ information. By convention, this information is usually configured in an
42
42
database_password = password
43
43
database_charset = UTF8
44
44
45
- .. note ::
46
-
47
- Defining the configuration via ``parameters.ini `` is just a convention. The
48
- parameters defined in that file are referenced by the main configuration
49
- file when setting up Propel:
45
+ These parameters defined in ``parameters.ini `` can now be included in the
46
+ configuration file (``config.yml ``):
50
47
51
- .. code-block :: yaml
48
+ .. code-block :: yaml
52
49
53
- propel :
54
- dbal :
55
- driver : " %database_driver%"
56
- user : " %database_user%"
57
- password : " %database_password%"
58
- dsn : " %database_driver%:host=%database_host%;dbname=%database_name%;charset=%database_charset%"
50
+ propel :
51
+ dbal :
52
+ driver : " %database_driver%"
53
+ user : " %database_user%"
54
+ password : " %database_password%"
55
+ dsn : " %database_driver%:host=%database_host%;dbname=%database_name%;charset=%database_charset%"
59
56
60
57
Now that Propel knows about your database, Symfony2 can create the database for
61
58
you:
0 commit comments