Development

ref/DirConfig (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of ref/DirConfig

Show
Ignore:
Author:
bshirley (IP: 206.231.146.2)
Timestamp:
01/19/09 18:33:17 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ref/DirConfig

    v0 v1  
     1= config = 
     2 
     3A collection of directories that store a number of configuration files at the project, application, and module level of the directory structure.  Becoming familiar with where to adjust these configuration files and what is available to you in each is a large step to mastering symfony development. 
     4 
     5Much of a symfony project is driven by configuration settings.  These are typically maintained in these directories located thought your project.  Some of the configuration will be read and loaded at run time (often being cached).  Some of the configuration will be read by tasks and generate classes into the project file structure. 
     6 
     7== Locations == 
     8 
     9{{{ 
     10/<projname>/config 
     11/<projname>/apps/<appname>/config 
     12/<projname>/apps/<appname>/modules/<modname>/config 
     13}}} 
     14 
     15== Contents == 
     16 
     17There are a variety of files that may or may not exist in any given config directory.  Here is a list of some of them: 
     18 * [wiki:ref/FileAppYml app.yml] 
     19 * [wiki:ref/FileAppnameConfigurationClassPhp <appname>Configuration.class.php] 
     20 * [wiki:ref/FileCacheYml cache.yml] 
     21 * [wiki:ref/FileDatabasesYml databases.yml] 
     22 * [wiki:ref/FileFactoriesYml factories.yml] 
     23 * [wiki:ref/FileFiltersYml filters.yml] 
     24 * [wiki:ref/FileGeneratorYml generator.yml] 
     25 * [wiki:ref/FileProjectConfigurationClassPhp ProjectConfiguration.class.php] 
     26 * [wiki:ref/FilePropelIni propel.ini] 
     27 * [wiki:ref/FilePropertiesIni properties.ini] 
     28 * [wiki:ref/FileRoutingYml routing.yml] 
     29 * [wiki:ref/FileRsyncExcludeTxt rsync_exclude.txt] 
     30 * [wiki:ref/FileSecurityYml security.yml] 
     31 * [wiki:ref/FileSettingsYml settings.yml] 
     32 * [wiki:ref/FileVhostSample vhost.sample] 
     33 
     34== Examples == 
     35 
     36listing from [http://www.symfony-project.org/jobeet/1_2/Propel/en/ Jobeet]: 
     37 
     38{{{ 
     39> find . -name config -print -exec ls -l '{}' \; 
     40./apps/backend/config 
     41-rw-r--r--  1 user  staff    23 Jan  5 15:17 app.yml 
     42-rw-r--r--@ 1 user  staff   135 Jan 15 11:18 backendConfiguration.class.php 
     43-rw-r--r--  1 user  staff    70 Jan  5 15:17 cache.yml 
     44-rw-r--r--  1 user  staff  3463 Jan  5 15:17 factories.yml 
     45-rw-r--r--  1 user  staff    98 Jan  5 15:17 filters.yml 
     46-rw-r--r--@ 1 user  staff   853 Jan 15 10:21 routing.yml 
     47-rw-r--r--@ 1 user  staff    38 Jan 15 11:10 security.yml 
     48-rw-r--r--@ 1 user  staff  4413 Jan 15 11:09 settings.yml 
     49-rw-r--r--  1 user  staff   321 Jan  5 15:17 view.yml 
     50 
     51./apps/backend/modules/affiliate/config 
     52-rw-r--r--@ 1 user  staff  809 Jan 15 10:46 generator.yml 
     53 
     54./apps/backend/modules/category/config 
     55-rw-r--r--@ 1 user  staff  719 Jan  7 13:02 generator.yml 
     56 
     57./apps/backend/modules/job/config 
     58-rw-r--r--@ 1 user  staff  1612 Jan 12 11:19 generator.yml 
     59 
     60./apps/frontend/config 
     61-rw-r--r--  1 user  staff    70 Dec  4 16:23 cache.yml 
     62-rw-r--r--  1 user  staff  3463 Dec  4 16:23 factories.yml 
     63-rw-r--r--  1 user  staff    98 Dec  4 16:23 filters.yml 
     64-rw-r--r--  1 user  staff   112 Dec  4 16:23 frontendConfiguration.class.php 
     65-rw-r--r--@ 1 user  staff  1229 Jan 12 14:12 routing.yml 
     66-rw-r--r--  1 user  staff    26 Dec  4 16:23 security.yml 
     67-rw-r--r--  1 user  staff  4219 Dec  4 16:23 settings.yml 
     68-rw-r--r--@ 1 user  staff   321 Dec 15 10:41 view.yml 
     69 
     70./config 
     71-rw-r--r--@ 1 user  staff   895 Jan 14 15:56 ProjectConfiguration.class.php 
     72-rw-r--r--@ 1 user  staff   102 Dec 17 10:19 app.yml 
     73-rw-r--r--@ 1 user  staff   631 Dec 17 13:39 databases.yml 
     74drwxr-xr-x  4 user  staff   136 Jan  9 14:40 doctrine 
     75drwxr-xr-x  5 user  staff   170 Jan  8 15:32 error 
     76-rw-r--r--  1 user  staff  2209 Dec 11 11:07 propel.ini 
     77-rw-r--r--  1 user  staff    24 Dec  4 16:23 properties.ini 
     78-rw-r--r--  1 user  staff    51 Dec  4 16:23 rsync_exclude.txt 
     79-rw-r--r--  1 user  staff   666 Dec  4 16:23 vhost.sample 
     80}}} 
     81 
     82== References == 
     83 
     84 * The Definitive Guide to symfony, [http://www.symfony-project.org/book/1_2/05-Configuring-Symfony Chapter 5] - Configuring Symfony 
     85 * The Definitive Guide to symfony, [http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files Chapter 19] - Mastering Symfony's Configuration Files