W klasie Bootstrap utworzyłem metodę _initPage() w której definiuję:
$cfg = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', 'production');
utworzony obiekt jest pusty i (chyba) z domyśnymi ustawieniami:
Zend_Config_Ini Object
(
[_nestSeparator:protected] => .
[_sectionSeparator:protected] => :
[_skipExtends:protected] =>
[_allowModifications:protected] =>
[_index:protected] => 0
[_count:protected] => 5
[_data
:protected
] => Array (
[phpSettings] => Zend_Config Object
(
[_allowModifications:protected] =>
[_index:protected] => 0
[_count:protected] => 2
[_data
:protected
] => Array (
[display_startup_errors] => 0
[display_errors] => 0
)
[_skipNextIteration:protected] =>
[_loadedSection:protected] =>
[_extends
:protected
] => Array (
)
[_loadFileErrorStr:protected] =>
)
[includePaths] => Zend_Config Object
(
[_allowModifications:protected] =>
[_index:protected] => 0
[_count:protected] => 1
[_data
:protected
] => Array (
[library] => D:\Zend\Apache2\htdocs\piosenki\application/../library
)
[_skipNextIteration:protected] =>
[_loadedSection:protected] =>
[_extends
:protected
] => Array (
)
[_loadFileErrorStr:protected] =>
)
[bootstrap] => Zend_Config Object
(
[_allowModifications:protected] =>
[_index:protected] => 0
[_count:protected] => 2
[_data
:protected
] => Array (
[path] => D:\Zend\Apache2\htdocs\piosenki\application/Bootstrap.php
[class] => Bootstrap
)
[_skipNextIteration:protected] =>
[_loadedSection:protected] =>
[_extends
:protected
] => Array (
)
[_loadFileErrorStr:protected] =>
)
[appnamespace] => Application
[resources] => Zend_Config Object
(
[_allowModifications:protected] =>
[_index:protected] => 0
[_count:protected] => 2
[_data
:protected
] => Array (
[frontController] => Zend_Config Object
(
[_allowModifications:protected] =>
[_index:protected] => 0
[_count:protected] => 2
[_data
:protected
] => Array (
[controllerDirectory] => D:\Zend\Apache2\htdocs\piosenki\application/controllers
[params] => Zend_Config Object
(
[_allowModifications:protected] =>
[_index:protected] => 0
[_count:protected] => 1
[_data
:protected
] => Array (
[displayExceptions] => 0
)
[_skipNextIteration:protected] =>
[_loadedSection:protected] =>
[_extends
:protected
] => Array (
)
[_loadFileErrorStr:protected] =>
)
)
[_skipNextIteration:protected] =>
[_loadedSection:protected] =>
[_extends
:protected
] => Array (
)
[_loadFileErrorStr:protected] =>
)
[layout] => Zend_Config Object
(
[_allowModifications:protected] =>
[_index:protected] => 0
[_count:protected] => 1
[_data
:protected
] => Array (
[layoutPath] => D:\Zend\Apache2\htdocs\piosenki\application/layouts/scripts/
)
[_skipNextIteration:protected] =>
[_loadedSection:protected] =>
[_extends
:protected
] => Array (
)
[_loadFileErrorStr:protected] =>
)
)
[_skipNextIteration:protected] =>
[_loadedSection:protected] =>
[_extends
:protected
] => Array (
)
[_loadFileErrorStr:protected] =>
)
)
[_skipNextIteration:protected] =>
[_loadedSection
:protected
] => Array (
[0] => production
)
[_extends
:protected
] => Array (
)
[_loadFileErrorStr:protected] =>
)
w ogóle nie ma sekcji page którą zdefiniowałem w application.ini:
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
resources.frontController.defaultControllerName = "piosenka"
resources.frontController.defaultAction = "jada-jada-misie"
resources.router.routes.home.route = "/"
resources.router.routes.home.defaults.controller = "piosenka"
resources.router.routes.home.defaults.action = "jada-jada-misie"
resources.router.routes.misie.route = "/jada-jada-misie.html"
resources.router.routes.misie.defaults.controller = "piosenka"
resources.router.routes.misie.defaults.action = "jada-jada-misie"
resources.router.routes.kolko.route = "/kolko-graniaste.html"
resources.router.routes.kolko.defaults.controller = "piosenka"
resources.router.routes.kolko.defaults.action = "kolko-graniaste"
resources.router.routes.ojciec.route = "ojciec-i-syn.html"
resources.router.routes.ojciec.defaults.controller = "piosenka"
resources.router.routes.ojciec.defaults.action = "ojciec-i-syn"
resources.view.doctype = "XHTML1_STRICT"
resources.view.contentType = "text/html; charset=utf-8"
page.title.content = "Piosenki dla dzieci"
page.title.separator = " ::: "
page.title.defaultAttachOrder = "PREPEND"
page.css.s1.href = "/css/style.css"
page.css.s2.href = "/css/print.css"
page.css.s2.media = "print"
page.js[] = "/js/jquery-1.4.min.js"
page.js[] = "/js/animacja.js"
page.keywords = "lorem, ipsum, dolor, sit, amet"
page.description = "Lorem ipsum..."
page.extension = "php"
Dlaczego?
--EDIT--Już rozwiązałem problem

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.
Ten post edytował ghost1511 26.01.2014, 11:27:58