开发者

A Controller plugin defined in application.ini not found by the front controller

I defined a plugin in 开发者_如何转开发application.ini directory like

resources.frontController.plugins.acl = "CMS_Controller_Plugin_Acl"

The namespace CMS_ is set to be autoloaded in bootstrap.php

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

But, when I lauch the program I am getting this error.

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


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

autoloaderNamespaces.CMS = 'CMS'
resources.frontController.plugins.acl = "CMS_Controller_Plugin_Acl"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜