farazch (1) [Avatar] Offline
#1
I am new to zend framework and trying to implement zend_acl.I created a custom plugin and placed it in
myzend/library/My/Controller/Plugin
myzend/library/My/Controller/Helper

where myzend is directory of my project.I am trying to initialize this custom plugin from
bootstrap using

$front = Zend_Controller_Front::getInstance();
$aclPlugin = new My_Controller_Plugin_Acl(new My_Acl()); $front->registerPlugin($aclPlugin);

But i am receiving this error message

"Uncaught exception 'Zend_Controller_Action_Exception' with message 'Action "index" does not exist and was not trapped in __call()' in CsmilieampphtdocsmyzendlibraryendControllerAction.php:485 Stack trace: #0 CsmilieampphtdocsmyzendlibraryendControllerAction.php(51smilie: Zend_Controller_Action->__call('indexAction', Array) #1 CsmilieampphtdocsmyzendlibraryendControllerDispatcherStandard.php(295): Zend_Controller_Action->dispatch('indexAction') #2 CsmilieampphtdocsmyzendlibraryendControllerFront.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #3 CsmilieampphtdocsmyzendlibraryendApplicationBootstrapBootstrap.php(97): Zend_Controller_Front->dispatch() #4 CsmilieampphtdocsmyzendlibraryendApplication.php(366): Zend_Application_Bootstrap_Bootstrap->run() #5 Csmilieampphtdocsmyzendpublicindex.php(26): Zend_Application->run() #6 {main} Next exception 'Zend_Controller_Exception' with message 'Action "index" does in CsmilieampphtdocsmyzendlibraryendControllerPluginBroker.php on line 336"


Also i tried to initialize from application.ini file using

autoloaderNamespaces[] = "My"
resources.frontController.plugins.acl = "My_Controller_Plugin_Acl"

But i am getting error message

"Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with message 'Action "index" does not exist and was not trapped in __call()' in CsmilieampphtdocsmyzendlibraryendControllerAction.php:485 Stack trace: #0 CsmilieampphtdocsmyzendlibraryendControllerAction.php(51smilie: Zend_Controller_Action->__call('indexAction', Array) #1 CsmilieampphtdocsmyzendlibraryendControllerDispatcherStandard.php(295): Zend_Controller_Action->dispatch('indexAction') #2 CsmilieampphtdocsmyzendlibraryendControllerFront.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #3 CsmilieampphtdocsmyzendlibraryendApplicationBootstrapBootstrap.php(97): Zend_Controller_Front->dispatch() #4 CsmilieampphtdocsmyzendlibraryendApplication.php(366): Zend_Application_Bootstrap_Bootstrap->run() #5 Csmilieampphtdocsmyzendpublicindex.php(26): Zend_Application->run() #6 {main} Next exception 'Zend_Controller_Exception' with message 'Action "index" does in CsmilieampphtdocsmyzendlibraryendControllerPluginBroker.php on line 336"



Please help me out what i am doing wrong.Its quite few hours i am struggling with this.