Recently I posted about the redirecting mechanism of Zend Framework. It’s a working chunk of code but the problem is that it seems quite difficult in according with other ZF sample codes.
Yes the same goal can be achieved with less effort. Like the _forward function which just executes other action/controller, you can call the _redirect method to rewrite the URI.
Just use that in any action of any controller:
$this->_redirect('http://www.example.com');
That executes exactly the same as calling the header PHP method or echoing the <meta> refresher!
Related posts:
- Redirecting with Zend Framework
- Redirect with Zend Framework
- Zend Examples: GET Parameters Default Value




I like the style of your blog.
And I like Zend Framework, too.
Nothing to say, very good work but there should be a n example.