31 августа 2011 г.

Примеры zend application.ini

Типовые задачи, чтобы не забыть

Copy Source | Copy HTML
  1. [production]
  2. phpSettings.display_startup_errors = 0
  3. phpSettings.display_errors = 0
  4. phpSettings.date.timezone = "Europe/Moscow"
  5.  
  6. appnamespace = "App"
  7. autoloaderNamespaces[] = "My"
  8. includePaths.mylib = APPLICATION_PATH "/lib"
  9.  
  10. bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  11. bootstrap.class = "Bootstrap"
  12.  
  13. resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
  14. resources.frontController.params.displayExceptions = 0
  15. resources.frontController.params.displayExceptionMessage = 1
  16.  
  17. resources.frontController.actionhelperpaths.My_Action_Helper = APPLICATION_PATH "/controllers/helpers"
  18.  
  19. resources.frontController.plugins[] = MyDefaultRouterCrunch
  20.  
  21.  
  22. resources.log.stream.writerName = "Stream"
  23. resources.log.stream.writerParams.stream = APPLICATION_PATH "/../../logs/dseye_exceprion.log"
  24. resources.log.stream.writerParams.mode = "a"
  25. resources.log.timestampFormat = "d-m-Y H:i:s"
  26.  
  27.  
  28. resources.session.name = "DSEYESESSID"
  29. resources.session.cookie_domain = ".dseye.ru"
  30. resources.session.remember_me_seconds = 604800
  31.  
  32.  
  33. resources.mail.transport.type = "smtp"
  34. resources.mail.transport.host = "smtp.yandex.ru"
  35. resources.mail.transport.port = 25
  36. resources.mail.transport.auth = "login"
  37. resources.mail.transport.username = "support@dseye.ru"
  38. resources.mail.transport.password = "123456"
  39. resources.mail.transport.register = true
  40.  
  41. resources.mail.defaultFrom.email = noreply@dseye.ru
  42. resources.mail.defaultFrom.name = "DSeye.ru - Анализатор Destiny Sphere"
  43.  
  44. resources.db.adapter = PDO_MYSQL
  45. resources.db.params.host = localhost
  46. resources.db.params.charset = "utf8"
  47. resources.db.params.username = front
  48. resources.db.params.password = 123456
  49. resources.db.params.dbname = dseye
  50.  
  51. ;resources.multidb.front.adapter   = PDO_MYSQL
  52. ;resources.multidb.front.dbname    = dseye
  53. ;resources.multidb.front.host      = localhost
  54. ;resources.multidb.front.username  = front
  55. ;resources.multidb.front.password  = 123456
  56. ;resources.multidb.front.default   = true
  57. ;resources.multidb.front.charset   = "utf8"
  58.  
  59.  
  60. ;resources.multidb.back.adapter   = PDO_MYSQL
  61. ;resources.multidb.back.dbname    = dseye
  62. ;resources.multidb.back.host      = localhost
  63. ;resources.multidb.back.username  = back
  64. ;resources.multidb.back.password  = 123456
  65. ;resources.multidb.back.charset   = "utf8"
  66.  
  67.  
  68. resources.view[] =
  69. resources.view.doctype = "XHTML1_STRICT"
  70. resources.view.encoding = "UTF-8"
  71. resources.view.basePath = APPLICATION_PATH "/views/"
  72. resources.view.helperPath.App_Helper = APPLICATION_PATH "/views/helpers"
  73.  
  74. resources.layout.layoutpath = APPLICATION_PATH "/layouts"
  75. resources.layout.layout    = layout
  76.  
  77.  
  78. [development : production]
  79. phpSettings.display_startup_errors = 1
  80. phpSettings.display_errors = 1
  81. phpSettings.session.cookie_domain = ".dseye.local"
  82.  
  83. resources.frontController.params.displayExceptions = 1
  84. resources.frontController.params.displayExceptionMessage = 1
  85.  
  86. resources.db.params.password = 123456
  87.  
  88.  
  89.  
  90. [cli : production]
  91. phpSettings.display_startup_errors = 1
  92. phpSettings.display_errors = 1
  93. phpSettings.max_execution_time = 1800
  94. phpSettings.memory_limit = 80M
  95.  
  96. resources.frontController.params.displayExceptions = 1
  97. resources.frontController.params.displayExceptionMessage = 1
  98.  
  99. resources.db.params.username = back
  100. resources.db.params.password = 123456




Комментариев нет: