<?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: Hooks in Action Helpers</title>
	<atom:link href="http://akrabat.com/zend-framework/hooks-in-action-helpers/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/</link>
	<description>Developing PHP software in the Real World, by Rob Allen</description>
	<lastBuildDate>Mon, 06 Feb 2012 14:53:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Volkan</title>
		<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/#comment-50886</link>
		<dc:creator>Volkan</dc:creator>
		<pubDate>Tue, 25 Jan 2011 09:26:36 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=288#comment-50886</guid>
		<description>Hey Rob,

Another thought. Is it possible to get this working from the application.ini configs?</description>
		<content:encoded><![CDATA[<p>Hey Rob,</p>
<p>Another thought. Is it possible to get this working from the application.ini configs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Devon</title>
		<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/#comment-43004</link>
		<dc:creator>Joe Devon</dc:creator>
		<pubDate>Tue, 09 Nov 2010 02:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=288#comment-43004</guid>
		<description>Hey Rob,

Another thought. Is it possible to get this working from the application.ini configs?</description>
		<content:encoded><![CDATA[<p>Hey Rob,</p>
<p>Another thought. Is it possible to get this working from the application.ini configs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Devon</title>
		<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/#comment-42638</link>
		<dc:creator>Joe Devon</dc:creator>
		<pubDate>Tue, 02 Nov 2010 22:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=288#comment-42638</guid>
		<description>Note if you&#039;re doing something that&#039;s a bit more complex in your Action Helper...iow, something that might call Exceptions, be sure to check out my issue and resolution on Stack Overflow:

http://stackoverflow.com/questions/4076578/do-action-helpers-with-hooks-to-auto-run-throw-exceptions-or-not/4082325</description>
		<content:encoded><![CDATA[<p>Note if you're doing something that's a bit more complex in your Action Helper...iow, something that might call Exceptions, be sure to check out my issue and resolution on Stack Overflow:</p>
<p><a href="http://stackoverflow.com/questions/4076578/do-action-helpers-with-hooks-to-auto-run-throw-exceptions-or-not/4082325" rel="nofollow">http://stackoverflow.com/questions/4076578/do-action-helpers-with-hooks-to-auto-run-throw-exceptions-or-not/4082325</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Weinraub</title>
		<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/#comment-38617</link>
		<dc:creator>David Weinraub</dc:creator>
		<pubDate>Sat, 28 Aug 2010 03:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=288#comment-38617</guid>
		<description>I&#039;m all for cleanly moving this kind of ancillary functionality - random quotes in a footer or sidebar, for example - out into a separate class. But an action helper seems an odd place for it. It seems to me an action helper is most useful for functionality that can be be called on demand from within an action itself. The kind of action-independent content we are discussing here strikes me as better suited to a view helper, kind of in-keeping with the &quot;controllers are not the data police&quot; philosophy. Whaddya think?</description>
		<content:encoded><![CDATA[<p>I'm all for cleanly moving this kind of ancillary functionality - random quotes in a footer or sidebar, for example - out into a separate class. But an action helper seems an odd place for it. It seems to me an action helper is most useful for functionality that can be be called on demand from within an action itself. The kind of action-independent content we are discussing here strikes me as better suited to a view helper, kind of in-keeping with the "controllers are not the data police" philosophy. Whaddya think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fadi Chalfoun</title>
		<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/#comment-31653</link>
		<dc:creator>Fadi Chalfoun</dc:creator>
		<pubDate>Sun, 07 Mar 2010 03:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=288#comment-31653</guid>
		<description>Thanks for the informative post! I was stuck for hours trying to get this working. Now I have a custom context switcher that gets auto-run from an action helper. This makes for a very clean solution.

Rob&#039;s idea helped me get this to work in 1.8+</description>
		<content:encoded><![CDATA[<p>Thanks for the informative post! I was stuck for hours trying to get this working. Now I have a custom context switcher that gets auto-run from an action helper. This makes for a very clean solution.</p>
<p>Rob's idea helped me get this to work in 1.8+</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/#comment-27553</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Tue, 16 Jun 2009 20:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=288#comment-27553</guid>
		<description>Well, it needs to go somewhere in your bootstrapping process, so creating an &lt;tt&gt;_initActionHelpers()&lt;/tt&gt; isn&#039;t a bad idea.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Well, it needs to go somewhere in your bootstrapping process, so creating an <tt>_initActionHelpers()</tt> isn't a bad idea.</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Devon</title>
		<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/#comment-27551</link>
		<dc:creator>Joe Devon</dc:creator>
		<pubDate>Tue, 16 Jun 2009 19:35:42 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=288#comment-27551</guid>
		<description>I was wondering about if the bootstrap section needed to change? Does that just go into Bootstrap.php?
&quot; // Action Helpers
    Zend_Controller_Action_HelperBroker::addPath(
        APPLICATION_PATH .&#039;/controllers/helpers&#039;);
        
    $hooks = Zend_Controller_Action_HelperBroker::getStaticHelper(&#039;Quote&#039;);
    Zend_Controller_Action_HelperBroker::addHelper($hooks);&quot;</description>
		<content:encoded><![CDATA[<p>I was wondering about if the bootstrap section needed to change? Does that just go into Bootstrap.php?<br />
" // Action Helpers<br />
    Zend_Controller_Action_HelperBroker::addPath(<br />
        APPLICATION_PATH .'/controllers/helpers');</p>
<p>    $hooks = Zend_Controller_Action_HelperBroker::getStaticHelper('Quote');<br />
    Zend_Controller_Action_HelperBroker::addHelper($hooks);"</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/#comment-27536</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Tue, 16 Jun 2009 09:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=288#comment-27536</guid>
		<description>Joe,

It shouldn&#039;t need any changes except to double check that the method signatures haven&#039;t changed.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Joe,</p>
<p>It shouldn't need any changes except to double check that the method signatures haven't changed.</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Devon</title>
		<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/#comment-27531</link>
		<dc:creator>Joe Devon</dc:creator>
		<pubDate>Tue, 16 Jun 2009 05:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=288#comment-27531</guid>
		<description>Hi Rob,

So how would this code need to be modified to work in ZF 1.8+ ?</description>
		<content:encoded><![CDATA[<p>Hi Rob,</p>
<p>So how would this code need to be modified to work in ZF 1.8+ ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Outsourcing India</title>
		<link>http://akrabat.com/zend-framework/hooks-in-action-helpers/#comment-23526</link>
		<dc:creator>Outsourcing India</dc:creator>
		<pubDate>Fri, 21 Nov 2008 10:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=288#comment-23526</guid>
		<description>Rob,

//return $quotes[rand(0, count($quotes)-1)];//

Greate Rob, Thanks Lot</description>
		<content:encoded><![CDATA[<p>Rob,</p>
<p>//return $quotes[rand(0, count($quotes)-1)];//</p>
<p>Greate Rob, Thanks Lot</p>
]]></content:encoded>
	</item>
</channel>
</rss>

