W klasie Bootstrap utworzyłem metodę _initPage() w której definiuję:
  1. $cfg = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', 'production');

utworzony obiekt jest pusty i (chyba) z domyśnymi ustawieniami:
  1. Zend_Config_Ini Object
  2. (
  3. [_nestSeparator:protected] => .
  4. [_sectionSeparator:protected] => :
  5. [_skipExtends:protected] =>
  6. [_allowModifications:protected] =>
  7. [_index:protected] => 0
  8. [_count:protected] => 5
  9. [_data:protected] => Array
  10. (
  11. [phpSettings] => Zend_Config Object
  12. (
  13. [_allowModifications:protected] =>
  14. [_index:protected] => 0
  15. [_count:protected] => 2
  16. [_data:protected] => Array
  17. (
  18. [display_startup_errors] => 0
  19. [display_errors] => 0
  20. )
  21.  
  22. [_skipNextIteration:protected] =>
  23. [_loadedSection:protected] =>
  24. [_extends:protected] => Array
  25. (
  26. )
  27.  
  28. [_loadFileErrorStr:protected] =>
  29. )
  30.  
  31. [includePaths] => Zend_Config Object
  32. (
  33. [_allowModifications:protected] =>
  34. [_index:protected] => 0
  35. [_count:protected] => 1
  36. [_data:protected] => Array
  37. (
  38. [library] => D:\Zend\Apache2\htdocs\piosenki\application/../library
  39. )
  40.  
  41. [_skipNextIteration:protected] =>
  42. [_loadedSection:protected] =>
  43. [_extends:protected] => Array
  44. (
  45. )
  46.  
  47. [_loadFileErrorStr:protected] =>
  48. )
  49.  
  50. [bootstrap] => Zend_Config Object
  51. (
  52. [_allowModifications:protected] =>
  53. [_index:protected] => 0
  54. [_count:protected] => 2
  55. [_data:protected] => Array
  56. (
  57. [path] => D:\Zend\Apache2\htdocs\piosenki\application/Bootstrap.php
  58. [class] => Bootstrap
  59. )
  60.  
  61. [_skipNextIteration:protected] =>
  62. [_loadedSection:protected] =>
  63. [_extends:protected] => Array
  64. (
  65. )
  66.  
  67. [_loadFileErrorStr:protected] =>
  68. )
  69.  
  70. [appnamespace] => Application
  71. [resources] => Zend_Config Object
  72. (
  73. [_allowModifications:protected] =>
  74. [_index:protected] => 0
  75. [_count:protected] => 2
  76. [_data:protected] => Array
  77. (
  78. [frontController] => Zend_Config Object
  79. (
  80. [_allowModifications:protected] =>
  81. [_index:protected] => 0
  82. [_count:protected] => 2
  83. [_data:protected] => Array
  84. (
  85. [controllerDirectory] => D:\Zend\Apache2\htdocs\piosenki\application/controllers
  86. [params] => Zend_Config Object
  87. (
  88. [_allowModifications:protected] =>
  89. [_index:protected] => 0
  90. [_count:protected] => 1
  91. [_data:protected] => Array
  92. (
  93. [displayExceptions] => 0
  94. )
  95.  
  96. [_skipNextIteration:protected] =>
  97. [_loadedSection:protected] =>
  98. [_extends:protected] => Array
  99. (
  100. )
  101.  
  102. [_loadFileErrorStr:protected] =>
  103. )
  104.  
  105. )
  106.  
  107. [_skipNextIteration:protected] =>
  108. [_loadedSection:protected] =>
  109. [_extends:protected] => Array
  110. (
  111. )
  112.  
  113. [_loadFileErrorStr:protected] =>
  114. )
  115.  
  116. [layout] => Zend_Config Object
  117. (
  118. [_allowModifications:protected] =>
  119. [_index:protected] => 0
  120. [_count:protected] => 1
  121. [_data:protected] => Array
  122. (
  123. [layoutPath] => D:\Zend\Apache2\htdocs\piosenki\application/layouts/scripts/
  124. )
  125.  
  126. [_skipNextIteration:protected] =>
  127. [_loadedSection:protected] =>
  128. [_extends:protected] => Array
  129. (
  130. )
  131.  
  132. [_loadFileErrorStr:protected] =>
  133. )
  134.  
  135. )
  136.  
  137. [_skipNextIteration:protected] =>
  138. [_loadedSection:protected] =>
  139. [_extends:protected] => Array
  140. (
  141. )
  142.  
  143. [_loadFileErrorStr:protected] =>
  144. )
  145.  
  146. )
  147.  
  148. [_skipNextIteration:protected] =>
  149. [_loadedSection:protected] => Array
  150. (
  151. [0] => production
  152. )
  153.  
  154. [_extends:protected] => Array
  155. (
  156. )
  157.  
  158. [_loadFileErrorStr:protected] =>
  159. )


w ogóle nie ma sekcji page którą zdefiniowałem w application.ini:
  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.  
  11. resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
  12. [staging : production]
  13.  
  14. [testing : production]
  15. phpSettings.display_startup_errors = 1
  16. phpSettings.display_errors = 1
  17.  
  18. [development : production]
  19. phpSettings.display_startup_errors = 1
  20. phpSettings.display_errors = 1
  21. resources.frontController.params.displayExceptions = 1
  22.  
  23. resources.frontController.defaultControllerName = "piosenka"
  24. resources.frontController.defaultAction = "jada-jada-misie"
  25.  
  26. resources.router.routes.home.route = "/"
  27. resources.router.routes.home.defaults.controller = "piosenka"
  28. resources.router.routes.home.defaults.action = "jada-jada-misie"
  29.  
  30. resources.router.routes.misie.route = "/jada-jada-misie.html"
  31. resources.router.routes.misie.defaults.controller = "piosenka"
  32. resources.router.routes.misie.defaults.action = "jada-jada-misie"
  33.  
  34. resources.router.routes.kolko.route = "/kolko-graniaste.html"
  35. resources.router.routes.kolko.defaults.controller = "piosenka"
  36. resources.router.routes.kolko.defaults.action = "kolko-graniaste"
  37.  
  38. resources.router.routes.ojciec.route = "ojciec-i-syn.html"
  39. resources.router.routes.ojciec.defaults.controller = "piosenka"
  40. resources.router.routes.ojciec.defaults.action = "ojciec-i-syn"
  41.  
  42. resources.view.doctype = "XHTML1_STRICT"
  43. resources.view.contentType = "text/html; charset=utf-8"
  44.  
  45. page.title.content = "Piosenki dla dzieci"
  46. page.title.separator = " ::: "
  47. page.title.defaultAttachOrder = "PREPEND"
  48.  
  49. page.css.s1.href = "/css/style.css"
  50. page.css.s2.href = "/css/print.css"
  51. page.css.s2.media = "print"
  52.  
  53. page.js[] = "/js/jquery-1.4.min.js"
  54. page.js[] = "/js/animacja.js"
  55.  
  56. page.keywords = "lorem, ipsum, dolor, sit, amet"
  57. page.description = "Lorem ipsum..."
  58.  
  59. page.extension = "php"

Dlaczego?

--EDIT--
Już rozwiązałem problem smile.gif Błąd nowicjusza: drugim parametrem jest sekcja którą klasa ma parsować. Ja podawałem 'production' podczas gdy wszystko miałem w 'development'.
Temat do zamknięcia.