首页  >  文章  >  后端开发  >  zendframework 配置实例

zendframework 配置实例

WBOY
WBOY原创
2016-07-25 09:09:58748浏览
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
复制代码


声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn