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

zendframework 配置实例

程序员文章站 2022-05-10 18:05:49
...
zendframework 配置实例




  1. [production]
  2. phpSettings.display_startup_errors = 0
  3. phpSettings.display_errors = 0
  4. includePaths.library = APPLICATION_PATH "/../library"
  5. bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  6. bootstrap.class = "Bootstrap"
  7. appnamespace = "Application"
  8. resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
  9. resources.frontController.params.displayExceptions = 0
  10. resources.db.adapter = "pdo_mysql"
  11. resources.db.params.host = "localhost"
  12. resources.db.params.username = "root"
  13. resources.db.params.password = "tenking"
  14. resources.db.params.dbname = "zfdemo"
  15. resources.db.params.charset = "utf8"
  16. resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
  17. resources.db.params.table_prefix = 'zd_'
  18. resources.session.save_path = APPLICATION_PATH "/../data/session"
  19. resources.session.use_only_cookies = true
  20. resources.session.remember_me_seconds = 864000
  21. 'resources.session.saveHandler.class = "Zend_Session_SaveHandler_DbTable"
  22. 'resources.session.saveHandler.options.name = "session"
  23. 'resources.session.saveHandler.options.primary.session_id = "session_id"
  24. 'resources.session.saveHandler.options.primary.save_path = "save_path"
  25. 'resources.session.saveHandler.options.primary.name = "name"
  26. 'resources.session.saveHandler.options.primaryAssignment.sessionId = "sessionId"
  27. 'resources.session.saveHandler.options.primaryAssignment.sessionSavePath = "sessionSavePath"
  28. 'resources.session.saveHandler.options.primaryAssignment.sessionName = "sessionName"
  29. 'resources.session.saveHandler.options.modifiedColumn = "modified"
  30. 'resources.session.saveHandler.options.dataColumn = "session_data"
  31. 'resources.session.saveHandler.options.lifetimeColumn = "lifetime"
  32. [staging : production]
  33. [testing : production]
  34. phpSettings.display_startup_errors = 1
  35. phpSettings.display_errors = 1
  36. [development : production]
  37. phpSettings.display_startup_errors = 1
  38. phpSettings.display_errors = 1
  39. resources.frontController.params.displayExceptions = 1
复制代码