Development

Changeset 7463

You must first sign up to be able to contribute.

Changeset 7463

Show
Ignore:
Timestamp:
02/12/08 00:09:17 (8 months ago)
Author:
dwhittle
Message:

1.1: fixed controller generation (environment / is_debug not replaced)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/task/generator/sfGenerateAppTask.class.php

    r7429 r7463  
    44 * This file is part of the symfony package. 
    55 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 
    6  *  
     6 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
     
    104104      'APP_NAME'    => $app, 
    105105      'ENVIRONMENT' => 'prod', 
    106       'IS_DEBUG'    => 'true', 
     106      'IS_DEBUG'    => 'false', 
    107107    )); 
    108108 
     
    110110      'APP_NAME'    => $app, 
    111111      'ENVIRONMENT' => 'dev', 
    112       'IS_DEBUG'    => 'false', 
     112      'IS_DEBUG'    => 'true', 
    113113    )); 
    114114 
  • branches/1.1/lib/task/generator/skeleton/app/web/index.php

    r1415 r7463  
    33define('SF_ROOT_DIR',    realpath(dirname(__FILE__).'/..')); 
    44define('SF_APP',         '##APP_NAME##'); 
    5 define('SF_ENVIRONMENT', 'prod'); 
    6 define('SF_DEBUG',       false); 
     5define('SF_ENVIRONMENT', '##ENVIRONMENT##'); 
     6define('SF_DEBUG',       ##IS_DEBUG##); 
    77 
    88require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');