| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?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'),
- // autoloading model and component classes
- 'import'=>array(
- 'application.models.*',
- 'application.components.*',
- 'application.include.*',
- 'application.include.Lewaimai.*',
- 'application.include.tools.*',
- 'application.include.taskcenter.*',
- 'application.lib.*',
- ),
-
- // application components
- 'components'=>array(
- 'db'=>array(
- 'connectionString' => 'mysql:host=rm-bp1353x13u02kzess.mysql.rds.aliyuncs.com;dbname=weixin',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'ZhipuziGX029319',
- 'charset' => 'utf8',
- 'tablePrefix' => 'wx_',
- ),
- // 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',
- ),
- ),
- ),
- ),
- );
|