You are not logged in.
Pages: 1
This is a bit strange, i've setted up my structure to use modules:
in my application.ini file:
; Define app to accept modules
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules = ""In my bootstrap.php that extends Zend_Application_Bootstrap_Bootstrap file:
protected $_resourceLoader;
protected function _initDefaultModuleAutoloader()
{
$this->_resourceLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH . '/modules/default',
));
return $this->_resourceLoader;
}all modules bootstrap files extend Zend_Application_Module_Bootstrap and only have code setting up module specific routes.
I have access to module controllers, routes are working as expected, but cant access any module models. Example:
I have a module called "Admin", inside a Admin_indexController i cant call for a model like new Admin_Model_Type(); it says the class is not found. example error message:
Fatal error: Class 'Admin_Model_Tipo' not found in H:\www\mudarcasa\application\modules\Admin\controllers\tipoController.php on line 17Even stranger it was all working before i reinstall my OS. I setted up wamp the same way. Only diference is now i have php5.2.11 insted of 5.2.9, and updated from ZF 1.10.3 to 1.10.7..
Offline
Forget about it, copy paste is evil, had 2 module bootstrap files names Admin_Bootstrap, one in Admin module and one in the default module.
This copy paste thing to save more time, is making me waste a lot more.
Sorry
Offline
Pages: 1