2010年3月25日星期四

[fw-mvc] Modules bootstrap throws warnings

Hi,

my modules were working with no problems, but I wanted to make them more
current with Zend_Application_Module_Bootstrap.

I have an empty module bootstrap class:

Admin_Bootstrap extends Zend_Application_Module_Bootstrap { }


I found out that in parent constructor, in code

// ZF-6545: prevent recursive registration of modules
if ($this->hasPluginResource('modules')) {
$this->unregisterPluginResource('modules');
}

warning is thrown for each module

Warning: include_once(FrontController.php) [function.include-once]: failed
to open stream: No such file or directory in C:\...\Zend\Loader.php on line
146

and the exception as the last one:

exception 'Zend_Session_Exception' with message 'You must call
Zend_Session::regenerateId() before any output has been sent to the browser;
output started in C:\...\Zend\Loader.php/146' in C:\...Zend\Session.php:307


If I disable the Zend_Application_Module_Bootstrap constructor, "everything"
works fine!?


Modules part of application.ini is:

resources.modules[] =
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.params.prefixDefaultModule = true
resources.frontController.defaultModule = "default"

Any ideas what's happening?

--
View this message in context: http://n4.nabble.com/Modules-bootstrap-throws-warnings-tp1690446p1690446.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: