do u have error reporting turned on?
Try:
error_reporting(E_ALL);
ini_set('display_errors','On');
before my code;
ciao
Am 18.02.2011 um 21:01 schrieb jordi:
>
> when I call Zend_Acl's isAllowed(..) method with a role, resource, or
> privilege that is not specified I would say it would return false, but that
> does not seem to happen. It does not seem to return at all, or am I doing
> something wrong?
>
> my code:
>
> echo 'one';
> if(!$this->_acl->isAllowed('blabla' ,'auth', 'login')){
> echo 'two';
>
> $request->setControllerName('authentication')->setActionName('unauthorized');
> }
> echo 'three';
>
> // one is shown, two and three not
>
> --
> View this message in context: http://zend-framework-community.634137.n4.nabble.com/returning-after-calling-Zend-Acl-s-isAllowed-tp3313453p3313453.html
> Sent from the Zend Auth mailing list archive at Nabble.com.
>
没有评论:
发表评论