News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen's Blog:
The Redirector action helper
August 30, 2010 @ 09:45:49

On his blog today Rob Allen has covered a helper for those using the Zend Framework that need to push the user around the site - the Redirector helper.

Redirector does what it says on the tin and redirects the user to another page. I mostly use this when coming back from filling a form in, so that the user is then redirected to another page. In admin systems, this is usually a list page. On front end websites, this is usually a thank you page. Though for log-in forms, I tend to try and return the user to where they were going!

He illustrates with a few code examples - a simple redirect from inside the controller using the "goToRoute" and "goToSimple" methods as well as "goToUrl" and the ability to set the HTTP response code with the "setCode" method. Check out the comments for more details from Matthew Weier O'Phinney on the internals of the Redirector helper.

1 comment voice your opinion now!
redirector helper zendframework example


blog comments powered by Disqus

Similar Posts

Community News: Zend Framework 1.0.0 Released

Ibuildings techPortal: Tips for Working with DateTime in PHP

Padraic Brady's Blog: Zend_Feed_Reader promoted to Zend Framework trunk (watch out for ZF 1.9!)

IBM developerWorks: PHP frameworks, Part 1: Getting started with three popular frameworks

Jim Plush's Blog: Rethinking Zend Models Part 3 - Validation


Community Events





Don't see your event here?
Let us know!


podcast zendserver series bugfix laravel interview introduction development api release symfony list framework conference community code threedevsandamaybe language tips deployment

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework