zend $acl->has() recource bt $acl->isAllowed returning false -


I am facing a strange problem with zend_acl, I successfully added more resources, but isAllowed () Function is always being redirected to the Error Controller.

  $ usersNs-> Role = 'administrator'; $ Acl- & gt; Adrol (New Zend_Acl_Role ($ usersNs- & gt; role)); $ Acl- & gt; Add (New Zend_Acl_Resource ("Dashboard :: Statistics")); $ PrivilageName = $ request-> GetControllerName (). "::". $ Request- & gt; GetActionName (); If ($ acl-> ($ privilageName) is) {Resonance is "privelage"; // Every time I go to the dashboard, stats} then resonate (! $ Acl- & gt; ($ user-> role, $ private name)) {$ request- & gt; SetControllerName ('Error'); $ Request & gt; SetActionName ('Error'); }  


Comments