1

我在 application.ini 目录中定义了一个插件,例如

resources.frontController.plugins.acl = "CMS_Controller_Plugin_Acl"

命名空间CMS_设置为在 bootstrap.php 中自动加载

    $autoLoader = Zend_Loader_Autoloader::getInstance();
    $autoLoader -> registerNamespace("CMS_");

但是,当我启动程序时,我收到了这个错误。

Class 'CMS_Controller_Plugin_Acl' not found in xxx\Zend\Application\Resource\Frontcontroller.php on line 117
4

1 回答 1

0

Try to register your namespace in your application.ini before the plugin.

autoloaderNamespaces.CMS = 'CMS'
resources.frontController.plugins.acl = "CMS_Controller_Plugin_Acl"
于 2011-07-22T14:17:42.903 回答