[ Index ] |
|
Code source de Symfony 1.0.0 |
1 <?php 2 3 /* 4 * This file is part of the symfony package. 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 7 * For the full copyright and license information, please view the LICENSE 8 * file that was distributed with this source code. 9 */ 10 11 // guess current application 12 if (!isset($app)) 13 { 14 $traces = debug_backtrace(); 15 $caller = $traces[0]; 16 $app = array_pop(explode(DIRECTORY_SEPARATOR, dirname($caller['file']))); 17 } 18 19 // define symfony constant 20 define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/../..')); 21 define('SF_APP', $app); 22 define('SF_ENVIRONMENT', 'test'); 23 define('SF_DEBUG', true); 24 25 // initialize symfony 26 require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'); 27 28 // remove all cache 29 sfToolkit::clearDirectory(sfConfig::get('sf_cache_dir'));
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |