config.inc.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. $app_path = dirname(dirname(__FILE__));
  3. return array(
  4. 'Namespace' => 'Test',// 该app的命名空间,比如 Product、Misc
  5. 'App_Id' => 'test.kimiss.com',
  6. 'App_Path' => $app_path,
  7. 'Lib_Path' => $app_path . DS . 'lib',
  8. 'route_file' => $app_path . DS . 'config/route.inc.php',
  9. 'memcached' => array(
  10. 'default' => array(
  11. array('10.15.200.181', 11211, 1),
  12. ),
  13. // 'dao_cache' => array(
  14. // array('10.15.200.181', 11211, 1),
  15. // ),
  16. ),
  17. 'db' => array(
  18. 'default' => 'mysqli://root:@kimiss@10.15.200.181/product?charset=utf8&name=gxg',
  19. ),
  20. 'dbslaves' => array(
  21. array(
  22. 'master' => '10.15.200.181:3306',
  23. 'mixed' => array(
  24. array(
  25. 'host' => '10.15.200.181',
  26. 'user' => 'root',
  27. 'pass' => '@kimiss',
  28. ),
  29. ),
  30. ),
  31. ),
  32. 'smarty' => array(
  33. 'template_dir' => $app_path . DS . 'template_dir',
  34. 'compile_dir' => $app_path . DS . 'compile_dir',
  35. 'tpl_type' => 'html',
  36. ),
  37. 'smtp' => array(// 用于发送邮件的smtp配置信息
  38. 'host' => 'smtp.qq.com',
  39. 'port' => 25,
  40. 'username' => 'husserl',
  41. 'from' => 'husserl@qq.com',
  42. 'fromname' => '闺蜜技术部',
  43. 'password' => 'lulu851031',
  44. 'charset' => 'utf8',
  45. 'timeout' => 20,
  46. ),
  47. );