开发者

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

开发者 https://www.devze.com 2023-03-22 10:56 出处:网络
I defined a plugin in 开发者_如何转开发application.ini directory like resources.frontController.plugins.acl = \"CMS_Controller_Plugin_Acl\"

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

精彩评论

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