zendframework 設定實例

WBOY
發布: 2016-07-25 09:09:58
原創
756 人瀏覽過
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
复制代码


相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板