mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-10 10:06:58 +01:00
30 lines
622 B
PHP
30 lines
622 B
PHP
<?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(
|
|
|
|
// database settings are configured in database.php
|
|
'db'=>require(dirname(__FILE__).'/database.php'),
|
|
|
|
'log'=>array(
|
|
'class'=>'CLogRouter',
|
|
'routes'=>array(
|
|
array(
|
|
'class'=>'CFileLogRoute',
|
|
'levels'=>'error, warning',
|
|
),
|
|
),
|
|
),
|
|
|
|
),
|
|
);
|