1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| protected function _initDefaultNamespace()
{
$moduleLoaders = array();
// Frontend
$frontend = new Zend_Application_Module_Autoloader(
array(
'namespace' => 'Frontend_',
'basePath' => APPLICATION_PATH . '/modules/frontend',
)
);
$frontend->addResourceType('mesModels', APPLICATION_PATH . '/models');
// Backend
$backend = new Zend_Application_Module_Autoloader(
array(
'namespace' => 'Backend_',
'basePath' => APPLICATION_PATH . '/modules/backend',
)
);
$moduleLoaders['Frontend'] = $frontend;
$moduleLoaders['Backend'] = $backend;
return $moduleLoaders;
} |
Partager