<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 26 May 2013 03:35:52 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rob Allen's Blog: The Redirector action helper]]></title>
      <guid>http://www.phpdeveloper.org/news/15038</guid>
      <link>http://www.phpdeveloper.org/news/15038</link>
      <description><![CDATA[<p>
On his blog today <i>Rob Allen</i> has <a href="http://akrabat.com/zend-framework/the-redirector-action-helper/">covered a helper</a> for those using the <a href="http://framework.zend.com">Zend Framework</a> that need to push the user around the site - the <a href="http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.redirector/">Redirector</a> helper.
</p>
<blockquote>
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!
</blockquote>
<p>
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 <i>Matthew Weier O'Phinney</i> on the internals of the Redirector helper.
</p>]]></description>
      <pubDate>Mon, 30 Aug 2010 09:45:49 -0500</pubDate>
    </item>
  </channel>
</rss>
