<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Quickie: Module-specific Error Controllers in Zend Framework (1.5)</title>
	<atom:link href="http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/</link>
	<description>Far Too Sweet To Be Sour</description>
	<lastBuildDate>Thu, 22 Dec 2011 08:44:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Zend Module Layout/Error Plugin &#171; All I&#039;m Saying Is&#8230;</title>
		<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/comment-page-1/#comment-2442</link>
		<dc:creator>Zend Module Layout/Error Plugin &#171; All I&#039;m Saying Is&#8230;</dc:creator>
		<pubDate>Mon, 05 Sep 2011 06:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=113#comment-2442</guid>
		<description>[...] the help of Daniel Cousineau&#8217;s Blog Post I was able to come up with the following Layout [...]</description>
		<content:encoded><![CDATA[<p>[...] the help of Daniel Cousineau&#8217;s Blog Post I was able to come up with the following Layout [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Crosthwaite</title>
		<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/comment-page-1/#comment-2435</link>
		<dc:creator>Ben Crosthwaite</dc:creator>
		<pubDate>Wed, 03 Aug 2011 23:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=113#comment-2435</guid>
		<description>Brilliant, thanks very much</description>
		<content:encoded><![CDATA[<p>Brilliant, thanks very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafael Dohms</title>
		<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/comment-page-1/#comment-2425</link>
		<dc:creator>Rafael Dohms</dc:creator>
		<pubDate>Wed, 04 May 2011 13:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=113#comment-2425</guid>
		<description>Thanks dude, just saved me a few minutes of senseless coding! I owe you a beer at #tek11.</description>
		<content:encoded><![CDATA[<p>Thanks dude, just saved me a few minutes of senseless coding! I owe you a beer at #tek11.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bungee</title>
		<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/comment-page-1/#comment-2422</link>
		<dc:creator>Bungee</dc:creator>
		<pubDate>Tue, 08 Mar 2011 18:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=113#comment-2422</guid>
		<description>Thank you !</description>
		<content:encoded><![CDATA[<p>Thank you !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/comment-page-1/#comment-2421</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Fri, 04 Mar 2011 08:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=113#comment-2421</guid>
		<description>Good Job! Great Article - that fits my needs exactly!

But..one thing 
use new Zend_Controller_Request_Http() instead of new Zend_Controller_Request_HTTP()

on linux systems it won&#039;t work cause of caseSensitive ;)

Thanks for this article!</description>
		<content:encoded><![CDATA[<p>Good Job! Great Article &#8211; that fits my needs exactly!</p>
<p>But..one thing<br />
use new Zend_Controller_Request_Http() instead of new Zend_Controller_Request_HTTP()</p>
<p>on linux systems it won&#8217;t work cause of caseSensitive ;)</p>
<p>Thanks for this article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leandro</title>
		<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/comment-page-1/#comment-2418</link>
		<dc:creator>Leandro</dc:creator>
		<pubDate>Sat, 19 Feb 2011 16:49:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=113#comment-2418</guid>
		<description>My solution:

application/Bootstrap.php: _initAutoLoad()
{...}
$modules = explode(&#039;/&#039;,$_SERVER[&#039;REQUEST_URI&#039;]);

//Seta os modulos que fazem parte do sistema
        $iterator = new DirectoryIterator( APPLICATION_PATH . &#039;/your_name_module&#039;);
        foreach ($iterator as $fileinfo) {
            if ($fileinfo-&gt;isDir() &amp;&amp; $fileinfo-&gt;getFilename()!=&#039;.&#039; &amp;&amp; $fileinfo-&gt;getFilename()!=&#039;..&#039;) {
               $directories[$fileinfo-&gt;getFilename()] = APPLICATION_PATH . DIRECTORY_SEPARATOR . &#039;your_name_module&#039; . DIRECTORY_SEPARATOR . $fileinfo-&gt;getFilename() . DIRECTORY_SEPARATOR . &#039;controllers&#039;;
            }
        }

        //Se nao existir modulo, o modulo padrao é assumido
        //senao pega o valor que esta chegando e seta como modulo
        if(!array_key_exists($modules[1], $directories))
        {
            $module = DEFAULT_MODULE; 
        } else {
            $module = $modules[1];
        }
        $front = Zend_Controller_Front::getInstance();
        $front-&gt;setControllerDirectory($directories);
        $front-&gt;setParam(&#039;module_request&#039;,$module);

application/Bootstrap.php: _initError()

          $front = Zend_Controller_Front::getInstance();
          $plugin = new Zend_Controller_Plugin_ErrorHandler();
          $plugin-&gt;setErrorHandlerModule($front-&gt;getParam(&#039;module_request&#039;))
                 -&gt;setErrorHandlerController(&#039;error&#039;)
                 -&gt;setErrorHandlerAction(&#039;error&#039;);
          $front-&gt;registerPlugin($plugin);</description>
		<content:encoded><![CDATA[<p>My solution:</p>
<p>application/Bootstrap.php: _initAutoLoad()<br />
{&#8230;}<br />
$modules = explode(&#8216;/&#8217;,$_SERVER['REQUEST_URI']);</p>
<p>//Seta os modulos que fazem parte do sistema<br />
        $iterator = new DirectoryIterator( APPLICATION_PATH . &#8216;/your_name_module&#8217;);<br />
        foreach ($iterator as $fileinfo) {<br />
            if ($fileinfo-&gt;isDir() &amp;&amp; $fileinfo-&gt;getFilename()!=&#8217;.&#8217; &amp;&amp; $fileinfo-&gt;getFilename()!=&#8217;..&#8217;) {<br />
               $directories[$fileinfo-&gt;getFilename()] = APPLICATION_PATH . DIRECTORY_SEPARATOR . &#8216;your_name_module&#8217; . DIRECTORY_SEPARATOR . $fileinfo-&gt;getFilename() . DIRECTORY_SEPARATOR . &#8216;controllers&#8217;;<br />
            }<br />
        }</p>
<p>        //Se nao existir modulo, o modulo padrao é assumido<br />
        //senao pega o valor que esta chegando e seta como modulo<br />
        if(!array_key_exists($modules[1], $directories))<br />
        {<br />
            $module = DEFAULT_MODULE;<br />
        } else {<br />
            $module = $modules[1];<br />
        }<br />
        $front = Zend_Controller_Front::getInstance();<br />
        $front-&gt;setControllerDirectory($directories);<br />
        $front-&gt;setParam(&#8216;module_request&#8217;,$module);</p>
<p>application/Bootstrap.php: _initError()</p>
<p>          $front = Zend_Controller_Front::getInstance();<br />
          $plugin = new Zend_Controller_Plugin_ErrorHandler();<br />
          $plugin-&gt;setErrorHandlerModule($front-&gt;getParam(&#8216;module_request&#8217;))<br />
                 -&gt;setErrorHandlerController(&#8216;error&#8217;)<br />
                 -&gt;setErrorHandlerAction(&#8216;error&#8217;);<br />
          $front-&gt;registerPlugin($plugin);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Hoke</title>
		<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/comment-page-1/#comment-2408</link>
		<dc:creator>Jeremy Hoke</dc:creator>
		<pubDate>Thu, 30 Dec 2010 18:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=113#comment-2408</guid>
		<description>Worked perfectly - thanks for this, exactly what I was looking for.</description>
		<content:encoded><![CDATA[<p>Worked perfectly &#8211; thanks for this, exactly what I was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Devon</title>
		<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/comment-page-1/#comment-2123</link>
		<dc:creator>Joe Devon</dc:creator>
		<pubDate>Sun, 07 Mar 2010 19:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=113#comment-2123</guid>
		<description>Could have used this in the past; bookmarked for the future ;) Good job.</description>
		<content:encoded><![CDATA[<p>Could have used this in the past; bookmarked for the future ;) Good job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D3N</title>
		<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/comment-page-1/#comment-2117</link>
		<dc:creator>D3N</dc:creator>
		<pubDate>Thu, 28 Jan 2010 22:11:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=113#comment-2117</guid>
		<description>Oh man das hab ich gesucht :)
Thank you, wunderful plugin</description>
		<content:encoded><![CDATA[<p>Oh man das hab ich gesucht :)<br />
Thank you, wunderful plugin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edson Hilios</title>
		<link>http://www.toosweettobesour.com/2008/08/11/quickie-module-specific-error-controllers-in-zend-framework-15/comment-page-1/#comment-1773</link>
		<dc:creator>Edson Hilios</dc:creator>
		<pubDate>Mon, 13 Apr 2009 01:01:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.toosweettobesour.com/?p=113#comment-1773</guid>
		<description>Wowww I love you man, that was the only thing that was missing on my CMS system, thank you</description>
		<content:encoded><![CDATA[<p>Wowww I love you man, that was the only thing that was missing on my CMS system, thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>

