Rumah >pembangunan bahagian belakang >tutorial php >zendframework 配置实例

zendframework 配置实例

WBOY
WBOYasal
2016-07-25 09:09:58764semak imbas
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
复制代码


Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn