Files
UA2004 52d427a5fa Database settings moved to separate file.
main.php and console.php just include it.

fixes #3489, close #3490
2014-08-15 01:28:48 +02:00

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',
),
),
),
),
);