2010年5月5日星期三

[fw-mvc] Re: Modules bootstrap throws warnings

Dont know if this is the problem, but I have
Zend_Application_Module_Autoloader configured in my module bootstraps:-

class Illuminate_Bootstrap extends Zend_Application_Module_Bootstrap
{
protected function _initAutoload()
{
$autoloader = new Zend_Application_Module_Autoloader(array(
'namespace' => 'Illuminate_',
'basePath' => APPLICATION_PATH . '/modules/illuminate',
'resourceTypes' => array(
'form' => array(
'path' => 'forms',
'namespace' => 'Form'
),
'model' => array(
'path' => 'models',
'namespace' => 'Model'
),
'model_db_table' => array(
'path' => 'models/db/table',
'namespace' => 'Model_Db_Table'
),
'json' => array(
'path' => 'json',
'namespace' => 'Json'
)
)
));
return $autoloader;
}
}

Also I think that all module bootstraps are executed even if you are not
viewing anything within that module. So if you have more than one module and
there is a problem within one of the bootstraps, it will error no matter if
that module is used in that request. Well I think that is the case :)

Your exception 'Zend_Session_Exception' is happening because the first error
is sending headers before the session is setup.Fix the first problem and the
second one will go with it.

Looking at :-

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

Have you got two bootstraps with the same name anywhere in your app ?
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Modules-bootstrap-throws-warnings-tp1690446p2130869.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: