I'm trying to find a way so that one specific action in controller is excluded from auth and made public.
I need this to be done for API integration purposes.
Is there a place I could look at to change or include any functions to do this?
Below is what I have in Bootstrap.php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initAutoload()
{
$moduleLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH));
$options = array(
'layout' => 'layout',
'layoutPath' => APPLICATION_PATH.'/views/layouts/',
);
$layout = Zend_Layout::startMvc($options);
return $moduleLoader;
}
}
use a plugin that extends
Zend_Controller_Plugin_Abstract
and then in the plugin codeThis is how i do my ACL controller plugin that has roles + resources where resources are combos of {{module}}_{{controller}} => array({{actions}})