2008年10月15日星期三

Re: [fw-mvc] Plugin and Redirector

Giorgio Sironi ha scritto:
> 2008/10/14 angelbit <angelbit88@gmail.com <mailto:angelbit88@gmail.com>>
>
> no, if go on user/login work (with the plugin disabled)
>
>
> The point is that it should work with the plugin Enabled. Hook your
> plugin in preDispatch() and test controller and action name of the
> request object to exclude user/login from being intercepted.
>
> --
> Giorgio Sironi
> Piccolo Principe & Ossigeno Scripter
> http://www.sourceforge.net/projects/ossigeno
How test controller and action name i have try this code and not work:
Forgot... the error of plugin is Errore 310
(net::ERR_TOO_MANY_REDIRECTS) not timeout error
I also tried to redirect to other controllers and actions but always the
same error
> function preDispatch() {
>
> $req=new Zend_Controller_Request_Http;
> echo $req->getActionName();
>
>
> $auth = Zend_Auth::getInstance();
> if (!$auth->hasIdentity()) {
>
>
> $re =
> Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');
> $re->setgotoUrl('user/login');
> $re->gotoUrl();
> }
>
> }
> }

没有评论: