yii config on production and development

on production :
 ..................  
 // Application components  
           'components' => array(  
               // Database  
               'db'=>array(  
                   'connectionString' => 'Your connection string to your production server',  
                   'emulatePrepare' => false,  
                   'username' => 'admin',  
                   'password' => 'password',  
                   'charset' => 'utf8',  
               ),  
               // Application Log  
               'log'=>array(  
                   'class'=>'CLogRouter',  
                   'routes'=>array(  
                       array(  
                           'class'=>'CFileLogRoute',  
                           'levels'=>'error, warning',  
                       ),  
                       // Send errors via email to the system admin  
                       array(  
                           'class'=>'CEmailLogRoute',  
                           'levels'=>'error, warning',  
                           'emails'=>'admin@example.com',  
                       ),  
                   ),  
               ),  
           ),  
       );  
 .............  

on Development :

 ..................  
 // Modules  
           'modules'=>array(  
               'gii'=>array(  
                   'class'=>'system.gii.GiiModule',  
                   'password'=>'your password',  
                   'ipFilters'=>array(),  
                   'newFileMode'=>0666,  
                   'newDirMode'=>0777,  
               ),  
           ),  
           // Application components  
           'components' => array(  
               // Database  
               'db'=>array(  
                   'connectionString' => 'Your connection string to your local development server',  
                   'emulatePrepare' => false,  
                   'username' => 'admin',  
                   'password' => 'password',  
                   'charset' => 'utf8',  
               ),  
               // Application Log  
               'log'=>array(  
                   'class'=>'CLogRouter',  
                   'routes'=>array(  
                   // Save log messages on file  
                       array(  
                           'class'=>'CFileLogRoute',  
                           'levels'=>'error, warning,trace, info',  
                       ),  
                       // Show log messages on web pages  
                       array(  
                           'class'=>'CWebLogRoute',  
                           'levels'=>'error, warning, trace, info',  
                       ),  
                   ),  
               ),  
           ),  
 .............  

Comments

Popular posts from this blog

Data Flow Diagram (DFD)

flexigrid + php with add and edit button

VERIFIKASI SUARA MENGGUNAKAN METODE MFCC DAN DTW MENGGUNAKAN METODE MFCC DAN DTW (BAB II TINJAUAN PUSTAKA)