欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

Zend Frame 配置信息实例

程序员文章站 2022-05-03 11:00:20
...
  1. [production]
  2. ; logs
  3. resources.log.stream.writerName = "Stream"
  4. resources.log.stream.writerParams.stream = APPLICATION_PATH "/../data/logs/production.log"
  5. resources.log.stream.writerParams.mode = "a"
  6. ; sessions
  7. resources.session.save_path = APPLICATION_PATH "/../data/sessions"
  8. resources.session.use_only_cookies = 1
  9. resources.session.remember_me_seconds = 864000
  10. ; router setting
  11. resources.router.routes.signup.type = "Zend_Controller_Router_Route_Static"
  12. resources.router.routes.signup.route = "signup"
  13. resources.router.routes.signup.defaults.module = "core"
  14. resources.router.routes.signup.defaults.controller = "home"
  15. resources.router.routes.signup.defaults.action = "sign-up"
  16. resources.router.routes.signup_success.type = "Zend_Controller_Router_Route_Static"
  17. resources.router.routes.signup_success.route = "signup/success"
  18. resources.router.routes.signup_success.defaults.module = "core"
  19. resources.router.routes.signup_success.defaults.controller = "home"
  20. resources.router.routes.signup_success.defaults.action = "sign-up-success"
  21. phpSettings.display_startup_errors = 1
  22. phpSettings.display_errors = 1
  23. includePaths.library = APPLICATION_PATH "/../library"
  24. bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  25. bootstrap.class = "Bootstrap"
  26. appnamespace = "Application"
  27. resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
  28. resources.frontController.params.displayExceptions = 0
  29. resources.layout.layoutPath = APPLICATION_PATH "/views/scripts"
  30. resources.view[] =
  31. ;db
  32. resources.db.adapter = "PDO_MYSQL"
  33. resources.db.params.host = 127.0.0.1
  34. resources.db.params.dbname = blog
  35. resources.db.params.username = root
  36. resources.db.params.password =
  37. resources.db.params.charset = utf8
  38. [staging : production]
  39. [testing : production]
  40. phpSettings.display_startup_errors = 1
  41. phpSettings.display_errors = 1
  42. [development : production]
  43. phpSettings.display_startup_errors = 1
  44. phpSettings.display_errors = 1
  45. resources.frontController.params.displayExceptions = 1
复制代码