<?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: Zend Framework &#8211; Conditionally Load Javascript Files</title>
	<atom:link href="http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/</link>
	<description></description>
	<lastBuildDate>Wed, 11 Jan 2012 02:53:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Stuart</title>
		<link>http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/comment-page-1/#comment-63</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Fri, 23 Jul 2010 17:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=185#comment-63</guid>
		<description>Cool. At first I was wondering what you meant but after thinking about it I realized your point is a good one. Now, because of thinking about it, I have another approach to use should such a situation arise. Thanks, Helmut!</description>
		<content:encoded><![CDATA[<p>Cool. At first I was wondering what you meant but after thinking about it I realized your point is a good one. Now, because of thinking about it, I have another approach to use should such a situation arise. Thanks, Helmut!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helmut</title>
		<link>http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/comment-page-1/#comment-62</link>
		<dc:creator>Helmut</dc:creator>
		<pubDate>Fri, 23 Jul 2010 16:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=185#comment-62</guid>
		<description>Yeah, I guess I was thinking on the long run but in any case your recommendation is excellent.</description>
		<content:encoded><![CDATA[<p>Yeah, I guess I was thinking on the long run but in any case your recommendation is excellent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/comment-page-1/#comment-61</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Fri, 23 Jul 2010 16:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=185#comment-61</guid>
		<description>Ahh... I see. Abstract controller would be one solution. Perhaps an action helper that handles such checking would be useful, though perhaps less robust?</description>
		<content:encoded><![CDATA[<p>Ahh&#8230; I see. Abstract controller would be one solution. Perhaps an action helper that handles such checking would be useful, though perhaps less robust?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helmut</title>
		<link>http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/comment-page-1/#comment-60</link>
		<dc:creator>Helmut</dc:creator>
		<pubDate>Fri, 23 Jul 2010 16:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=185#comment-60</guid>
		<description>Hey Stuart,

What I meant is say you have 60 controllers them all share the same configuration in the header but then you have to make a change to them because a JS file has been moved to a different area or has been deleted. Now you have to go through all 60 controllers to make the change and make sure it is done properly not making a mistake.

But I guess if you make Abstract controllers with specific settings that then can be extended that would be &quot;better&quot;?</description>
		<content:encoded><![CDATA[<p>Hey Stuart,</p>
<p>What I meant is say you have 60 controllers them all share the same configuration in the header but then you have to make a change to them because a JS file has been moved to a different area or has been deleted. Now you have to go through all 60 controllers to make the change and make sure it is done properly not making a mistake.</p>
<p>But I guess if you make Abstract controllers with specific settings that then can be extended that would be &#8220;better&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/comment-page-1/#comment-59</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Fri, 23 Jul 2010 15:56:28 +0000</pubDate>
		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=185#comment-59</guid>
		<description>&lt;blockquote cite=&quot;#commentbody-58&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-58&quot; rel=&quot;nofollow&quot;&gt;Helmut&lt;/a&gt; :&lt;/strong&gt;
          &lt;p&gt;The probability of introducing errors might be greater than using the logic to find the user’s location.&lt;/p&gt;
         &lt;/blockquote&gt;

Hi Helmut, thanks for the input. How do you see this happening? It seems to me that the chance of error is equal either way. This method keeps the javascript that is specific to a certain controller paired only with that controller. Makes it easier to maintain and control and keeps the layout template cleaner.

One possible solution, though, might be to create an action helper that does the conditional checking for you and then include that action helper in the init.</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-58"><p>
<strong><a href="#comment-58" rel="nofollow">Helmut</a> :</strong></p>
<p>The probability of introducing errors might be greater than using the logic to find the user’s location.</p>
</blockquote>
<p>Hi Helmut, thanks for the input. How do you see this happening? It seems to me that the chance of error is equal either way. This method keeps the javascript that is specific to a certain controller paired only with that controller. Makes it easier to maintain and control and keeps the layout template cleaner.</p>
<p>One possible solution, though, might be to create an action helper that does the conditional checking for you and then include that action helper in the init.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helmut</title>
		<link>http://sandhillcreative.com/kb/2010/04/06/zend-framework-conditionally-load-javascript-files/comment-page-1/#comment-58</link>
		<dc:creator>Helmut</dc:creator>
		<pubDate>Fri, 23 Jul 2010 15:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://sandhillcreative.com/kb/?p=185#comment-58</guid>
		<description>As this might work for 2 or 3 controllers, what happens when you have a few tenths or hundredths of controllers? The probability of introducing errors might be greater than using the logic to find the user&#039;s location.</description>
		<content:encoded><![CDATA[<p>As this might work for 2 or 3 controllers, what happens when you have a few tenths or hundredths of controllers? The probability of introducing errors might be greater than using the logic to find the user&#8217;s location.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

