Development

Upgrade1.1-ConfigPHP (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of Upgrade1.1-ConfigPHP

Show
Ignore:
Author:
GaryFx (IP: 71.232.85.188)
Timestamp:
08/13/08 22:06:52 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Upgrade1.1-ConfigPHP

    v0 v1  
     1All `config.php` files have been removed from the 1.1 skeleton.  They are replaced by the `ProjectConfiguration` 
     2class and the application configuration classes.  If you've added some cutomizations in `config.php` files, you will have to migrate them to those new classes. 
     3 
     4However, the [wiki:Upgrade1.1-ProjectUpgradeTask project:upgrade1.1 task] won't delete these files, but will identify them in its output log.  
     5 
     6In case you're unsure whether you've changed these files, the 1.0 skeleton application config file ({{{apps/*/config/config.php}}}, derived from {{{$SYMFONY_1.0/data/symfony/skeleton/app/app/config/config.php}}}) file is: 
     7{{{ 
     8<?php 
     9 
     10// include project configuration 
     11include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'); 
     12 
     13// symfony bootstraping 
     14require_once($sf_symfony_lib_dir.'/util/sfCore.class.php'); 
     15sfCore::bootstrap($sf_symfony_lib_dir, $sf_symfony_data_dir); 
     16}}} 
     17 
     18and the 1.0 skeleton project config file ({{{config/config.php}}}, derived from {{{$SYMFONY_1.0/data/symfony/skeleton/project/config/config.php}}}) is: 
     19{{{ 
     20<?php 
     21 
     22// symfony directories 
     23$sf_symfony_lib_dir  = '##SYMFONY_LIB_DIR##'; 
     24$sf_symfony_data_dir = '##SYMFONY_DATA_DIR##'; 
     25}}} 
     26