Following is my project structure,
In the bootstrap file, am loading modules like this
protected function _initAutoload() {
$autoloader = new Zend_Application_Module_Autoloader(array(
'namespace'=>'',
'basepath'=>APPLICATION_PATH
)
);
return $autoloader;
}
When I try to access controller, following error is thrown,
Fatal error: Uncaught exception 'Zend_Loader_Exception' with message 'Resource loader requires both a namespace and a base path for initialization' in
Any idea on this?
APPLICATION.INI
[production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
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/"
resources.view.doctype = "XHTML1_STRICT"
resources.db.adapter = PDO_MYSQL;
resources.db.params.host = localhost;
resources.db.params.username = root2;
resources.db.params.password = password;
resources.db.params.dbname = zfalbums;
settings.publicFoderPathRelativeToApplicationPath = "../public_html";
settings.skin.name = "default";
settings.cache.enable = false;
Thanks