dirname(__FILE__) . DIRECTORY_SEPARATOR .'..', 'name' => 'Teccher Console Application', 'charset' => 'utf-8', 'language' => 'zh_cn', 'timeZone' => 'Asia/Chongqing', 'import' => array( 'application.models.*', 'application.components.*', 'lib.core.*', 'lib.core.db.*', ), 'components' => array( 'log' => array( 'class' => 'CLogRouter', 'routes' => array( array( 'class' => 'CFileLogRoute', 'levels' => 'info, warning, error', ), ), ), //数据库配置,可配置多个数据库 'db' => array( //'class' => 'CDbConnection', 'connectionString' => 'mysql:host=192.168.1.210:3307;dbname=spider_business', 'username' => 'zsy', 'password' => 'lc12345', 'charset' => 'utf8', 'emulatePrepare' => TRUE, ), ), // application-level parameters that can be accessed // using Yii::app()->params['paramName'] );