console.php 934 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. return array(
  3. 'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR .'..',
  4. 'name' => 'Teccher Console Application',
  5. 'charset' => 'utf-8',
  6. 'language' => 'zh_cn',
  7. 'timeZone' => 'Asia/Chongqing',
  8. 'import' => array(
  9. 'application.models.*',
  10. 'application.components.*',
  11. 'lib.core.*',
  12. 'lib.core.db.*',
  13. ),
  14. 'components' => array(
  15. 'log' => array(
  16. 'class' => 'CLogRouter',
  17. 'routes' => array(
  18. array(
  19. 'class' => 'CFileLogRoute',
  20. 'levels' => 'info, warning, error',
  21. ),
  22. ),
  23. ),
  24. //数据库配置,可配置多个数据库
  25. 'db' => array(
  26. //'class' => 'CDbConnection',
  27. 'connectionString' => 'mysql:host=192.168.1.210:3307;dbname=spider_business',
  28. 'username' => 'zsy',
  29. 'password' => 'lc12345',
  30. 'charset' => 'utf8',
  31. 'emulatePrepare' => TRUE,
  32. ),
  33. ),
  34. // application-level parameters that can be accessed
  35. // using Yii::app()->params['paramName']
  36. );