以下是我的项目结构,
在引导文件中,正在加载这样的模块
protected function _initAutoload() {
$autoloader = new Zend_Application_Module_Autoloader(array(
'namespace'=>'',
'basepath'=>APPLICATION_PATH
)
);
return $autoloader;
}
当我尝试访问控制器时,会引发以下错误,
致命错误:未捕获的异常“Zend_Loader_Exception”与消息“资源加载器需要命名空间和基本路径进行初始化”
对此有任何想法吗?
应用程序.ini
[production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "引导程序"
appnamespace = "应用程序"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
资源.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 = 本地主机;
资源.db.params.username = root2;
resources.db.params.password = 密码;
资源.db.params.dbname = zfalbums;
settings.publicFoderPathRelativeToApplicationPath = "../public_html";
settings.skin.name = "默认";
settings.cache.enable = false;
谢谢