<?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>Thu, 23 May 2013 13:26:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Aleksey Zapparov's Blog: How to handle unexistence controllers/actions with Zend_Controller]]></title>
      <guid>http://www.phpdeveloper.org/news/6525</guid>
      <link>http://www.phpdeveloper.org/news/6525</link>
      <description><![CDATA[<p>
As mentioned by the Zend Developer Zone in <a href="http://devzone.zend.com/node/view/id/1072">this post</a>, <i>Aleksey Zapparov</i> has posted a <a href="http://ixti-s.blogspot.com/2006/10/mvc-using-zend-framework-015-how-to.html">quick tutorial</a> on how to deal with a missing action and controller in your Zend Framework application.
</p>
<blockquote>
You can easily make them call indexController::noRouteAction() on unexistence controllers, but on unexistence actions they'll throw you an exception. So there is a way to change this - modify sources.
</blockquote>
<p>
His <a href="http://ixti-s.blogspot.com/2006/10/mvc-using-zend-framework-015-how-to.html">code</a> basicly watches for the exceptions that would be thrown from a missing action and handles then inside a try/catch. If things fail, the user gets shuttled off to the Error404 controller that dumps out the contents of the controller class.
</p>]]></description>
      <pubDate>Wed, 18 Oct 2006 10:56:00 -0500</pubDate>
    </item>
  </channel>
</rss>
