2010年9月7日星期二

[fw-mvc] Redirecting to Controller/Action in Bootstrap

Hello,

 

I'm using Zend_Auth with LDAP to authenticate users. The authenfication proccess is in the Bootstrap class, un a "_initAuth" method.

 

I've a problem: if the auth failed or if users press "Cancel" on the WWW-Authenticate window, the page is loaded.. How I can change the Controller and the Action in the Bootstrap? I tried:

$this->_front->getRequest()->setParam('controller', 'index');

$this->_front->getRequest()->setParam('action', 'authentification');

 

But it doesn't works.

 

Can you help-me ?

 

Regards,

Samuel ROZE.

Communauté Urbaine de Lille, France.

没有评论: