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

Review Pemakaian Lenovo K900 Mati Total (Matot)

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

VERIFIKASI SUARA MENGGUNAKAN METODE MFCC DAN DTW MENGGUNAKAN METODE MFCC DAN DTW (BAB III METODE DAN PERANCANGAN SISTEM)