PHP Classes

File: protected/config/console.php

Recommend this page to a friend!
  Classes of Adnane EL Mouttaki   Covoiturage   protected/config/console.php   Download  
File: protected/config/console.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Covoiturage
System for managing a car pooling service
Author: By
Last change:
Date: 6 years ago
Size: 858 bytes
 

Contents

Class file image Download
<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
   
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
   
'name'=>'My Console Application',

   
// preloading 'log' component
   
'preload'=>array('log'),

   
// application components
   
'components'=>array(
       
'db'=>array(
           
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
        ),
       
// uncomment the following to use a MySQL database
        /*
        'db'=>array(
            'connectionString' => 'mysql:host=localhost;dbname=testdrive',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
        ),
        */
       
'log'=>array(
           
'class'=>'CLogRouter',
           
'routes'=>array(
                array(
                   
'class'=>'CFileLogRoute',
                   
'levels'=>'error, warning',
                ),
            ),
        ),
    ),
);