-- Nicolae Namolovan <[EMAIL PROTECTED]> wrote
(on Monday, 03 December 2007, 01:41 AM +0100):
> I need a basic url redirect, how can I do that with ZF ?
> I'd prefer without any object creation, any static method ?
> Looked at the 'Redirector.php', but can't really find any static
> function for my purpose...
Grab the redirector from the helper broker:
$redirector =
Zend_Controller_Action_HelperBroker::getStaticHelper('redirector);
$redirector->goto(...); // or gotoUrl() or any other method
When not associated with an action controller, it grabs the response
object from the front controller. By default, it also simply exits after
the redirect is performed.
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/