admin_console.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. // This is the configuration for yiic console application.
  3. // Any writable CConsoleApplication properties can be configured here.
  4. return array(
  5. 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
  6. 'name'=>'My Console Application',
  7. // preloading 'log' component
  8. 'preload'=>array('log'),
  9. // autoloading model and component classes
  10. 'import'=>array(
  11. 'application.models.*',
  12. 'application.components.*',
  13. 'application.include.*',
  14. 'application.include.Lewaimai.*',
  15. 'application.include.tools.*',
  16. 'application.include.taskcenter.*',
  17. 'application.lib.*',
  18. ),
  19. // application components
  20. 'components'=>array(
  21. 'db'=>array(
  22. 'connectionString' => 'mysql:host=rm-bp1353x13u02kzess.mysql.rds.aliyuncs.com;dbname=weixin',
  23. 'emulatePrepare' => true,
  24. 'username' => 'zhipuzi',
  25. 'password' => 'ZhipuziGX029319',
  26. 'charset' => 'utf8',
  27. 'tablePrefix' => 'wx_',
  28. ),
  29. // uncomment the following to use a MySQL database
  30. /*
  31. 'db'=>array(
  32. 'connectionString' => 'mysql:host=localhost;dbname=testdrive',
  33. 'emulatePrepare' => true,
  34. 'username' => 'root',
  35. 'password' => '',
  36. 'charset' => 'utf8',
  37. ),
  38. */
  39. 'log'=>array(
  40. 'class'=>'CLogRouter',
  41. 'routes'=>array(
  42. array(
  43. 'class'=>'CFileLogRoute',
  44. 'levels'=>'error, warning',
  45. ),
  46. ),
  47. ),
  48. ),
  49. );