Note that there are some explanatory texts on larger screens.

plurals
  1. POisAllowed() is not taking the parameters value
    primarykey
    data
    text
    <pre><code> class Application_Plugin_AccessCheck extends Zend_Controller_Plugin_Abstract { private $_auth=null; private $_acl=null; public function __construct() { $auth = Zend_Auth::getInstance(); $acl = new Zend_Acl; $this-&gt;_auth = $auth; $this-&gt;_acl = $acl; } public function preDispatch(Zend_Controller_Request_Abstract $request) { $resource = $request-&gt;getControllerName(); $action = $request-&gt;getActionName(); $identity = $this-&gt;_auth-&gt;getStorage()-&gt;read(); $role = $identity-&gt;role; if(!$this-&gt;_acl-&gt;isAllowed($role,$resource,$action)){ $request-&gt;setControllerName('Auth') -&gt;setActionName('login'); } //echo '&lt;pre&gt;';print_r('inside plugins......success');die(); } } This is the ACL plugin page i am using. In this particular line if(!$this-&gt;_acl-&gt;isAllowed($role,$resource,$action)) The function isAllowed is not taking the parameters, the url comes blank. If i assign if(!$this-&gt;_acl-&gt;isAllowed($role=null,$resource=null,$action=null)), the page opens but it doesn't have any meaning if i set null. Seeking for Help I am adding the model class "AsiaAcl.php" for more clearification class Model_Asian_Acl extends Zend_Acl{ public function __construct(){ $this-&gt;add(new Zend_Acl_Resource('data')); $this-&gt;add(new Zend_Acl_Resource('updatecat'),'data'); $this-&gt;add(new Zend_Acl_Resource('detelecategory'),'data'); $this-&gt;add(new Zend_Acl_Resource('datas')); $this-&gt;add(new Zend_Acl_Resource('listcat'),'datas'); $this-&gt;addRole(new Zend_Acl_Role('user')); $this-&gt;addRole(new Zend_Acl_Role('admin'),'user'); $this-&gt;allow('user','datas','listcat'); $this-&gt;allow('admin','data','updatecat'); $this-&gt;allow('admin','data','deletecategory'); } } Thanks. </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload