Hi Steven, For the first one _forward seams like the correct method (http://framework.zend.com/apidoc/core/Zend_Controller/Zend_Controller_Actio n.html#_forward).
For handling errors you probably should have a look into Zend_Controller_Plugin_ErrorHandler (http://framework.zend.com/manual/en/zend.controller.plugins.html) which is the standard way to do it. Cheers, Leo -----Ursprüngliche Nachricht----- Von: Truppe Steven [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 31. August 2007 20:51 An: [email protected] Betreff: [fw-general] need help with simple authentication plugin (how to redirect to another :model :controller :action?) i'm on writing a simple Zend_Acl&Zend_Auth Plugin that checks in preDispatch() if there are any rules for resources related to the actual module/controller/action. this all works fine, my question now is how can i forward to the controller:admin action:login if i find that the current user needs to login because he has not enouth permissions set ? I also want to handle the Error stuff inside postDispatch(). So if there is an exception it forwards to model:default, controller:Error, action:customerror. There is a method called _forward but i can't remember how to use it and in which context i have use it. best regards, Truppe Steven
