<?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: Extending ViewRenderer to Support Layout Templates</title>
	<atom:link href="http://akrabat.com/php/extending-viewrenderer-for-layouts/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/</link>
	<description>Developing PHP software in the Real World, by Rob Allen</description>
	<lastBuildDate>Sat, 13 Mar 2010 12:03:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David</title>
		<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/#comment-22141</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 03 Jul 2008 10:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/#comment-22141</guid>
		<description>@Dan: You can replace the line with the following:

$this-&gt;view-&gt;baseUrl = $this-&gt;getRequest()-&gt;getBaseUrl();</description>
		<content:encoded><![CDATA[<p>@Dan: You can replace the line with the following:</p>
<p>$this-&gt;view-&gt;baseUrl = $this-&gt;getRequest()-&gt;getBaseUrl();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angel</title>
		<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/#comment-18268</link>
		<dc:creator>Angel</dc:creator>
		<pubDate>Fri, 30 Nov 2007 04:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/#comment-18268</guid>
		<description>Hey, I just started working with ZF.. So far everything is okay... Except, I really don&#039;t like the fact that if I work with modules My views have to be in &quot;modules/moduleName/views/scripts/:controller/:action&quot; .
I was wondering if it was actually possible to make it this way:
&quot;application/views/moduleName/:controller/:action&quot;

It would mean a lot if you could help,

Angel</description>
		<content:encoded><![CDATA[<p>Hey, I just started working with ZF.. So far everything is okay... Except, I really don't like the fact that if I work with modules My views have to be in "modules/moduleName/views/scripts/:controller/:action" .<br />
I was wondering if it was actually possible to make it this way:<br />
"application/views/moduleName/:controller/:action"</p>
<p>It would mean a lot if you could help,</p>
<p>Angel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Papasian</title>
		<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/#comment-17401</link>
		<dc:creator>Daniel Papasian</dc:creator>
		<pubDate>Sat, 17 Nov 2007 17:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/#comment-17401</guid>
		<description>Regarding M&#039;s question (15-17), why not just call, from the controller, 

$this-&gt;viewRenderer-&gt;setLayoutScript(false);

and then in your implementation of renderScript, do this first:

if(!$this-&gt;getLayoutScript) {
  parent::renderScript($script, $name);
}

It seems that would be the easiest way of disabling the layout script functionality completely.</description>
		<content:encoded><![CDATA[<p>Regarding M's question (15-17), why not just call, from the controller, </p>
<p>$this-&gt;viewRenderer-&gt;setLayoutScript(false);</p>
<p>and then in your implementation of renderScript, do this first:</p>
<p>if(!$this-&gt;getLayoutScript) {<br />
  parent::renderScript($script, $name);<br />
}</p>
<p>It seems that would be the easiest way of disabling the layout script functionality completely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harro</title>
		<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/#comment-16977</link>
		<dc:creator>Harro</dc:creator>
		<pubDate>Mon, 12 Nov 2007 19:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/#comment-16977</guid>
		<description>I just removed that line and it worked just fine ;)</description>
		<content:encoded><![CDATA[<p>I just removed that line and it worked just fine ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/#comment-16717</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 09 Nov 2007 11:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/#comment-16717</guid>
		<description>This is great, and exactly what I was after, but I&#039;ve un into a small problem. 

The Helper is throwing up the following error:

Controller_Action_Helper_ViewRenderer::$_request in /var/www/proficcymod/lib/LLGC/Controller/Action/Helper/ViewRenderer.php on line 64

PHP Fatal error:  Call to a member function getBaseUrl() on a non-object in /var/www/proficcymod/lib/LLGC/Controller/Action/Helper/ViewRenderer.php on line 64</description>
		<content:encoded><![CDATA[<p>This is great, and exactly what I was after, but I've un into a small problem. </p>
<p>The Helper is throwing up the following error:</p>
<p>Controller_Action_Helper_ViewRenderer::$_request in /var/www/proficcymod/lib/LLGC/Controller/Action/Helper/ViewRenderer.php on line 64</p>
<p>PHP Fatal error:  Call to a member function getBaseUrl() on a non-object in /var/www/proficcymod/lib/LLGC/Controller/Action/Helper/ViewRenderer.php on line 64</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: _ploum_</title>
		<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/#comment-14536</link>
		<dc:creator>_ploum_</dc:creator>
		<pubDate>Mon, 01 Oct 2007 13:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/#comment-14536</guid>
		<description>thanx Akrabat, you&#039;re the one ^^</description>
		<content:encoded><![CDATA[<p>thanx Akrabat, you're the one ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Wood</title>
		<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/#comment-11623</link>
		<dc:creator>Michael Wood</dc:creator>
		<pubDate>Fri, 20 Jul 2007 17:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/#comment-11623</guid>
		<description>Thanks so much for this example, it was just what I was looking for! Works like a charm.</description>
		<content:encoded><![CDATA[<p>Thanks so much for this example, it was just what I was looking for! Works like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aras</title>
		<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/#comment-11588</link>
		<dc:creator>Aras</dc:creator>
		<pubDate>Thu, 19 Jul 2007 13:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/#comment-11588</guid>
		<description>what if i have some viewHelpers that need javaScript. How can I incle that in &quot;site.tpl.php&quot;?.
Regards..</description>
		<content:encoded><![CDATA[<p>what if i have some viewHelpers that need javaScript. How can I incle that in "site.tpl.php"?.<br />
Regards..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/#comment-11237</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Wed, 11 Jul 2007 05:16:24 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/#comment-11237</guid>
		<description>Simon,

in Controller/Action/Helper/ViewRenderer.php.

Usually, you would prefix with a &quot;vendor&quot; name, such as Akra. In which case the full class is Akra_Controller_Action_Helper_ViewRenderer which lives in lib/Akra/Controller/Action/Helper/ViewRenderer.php.


Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Simon,</p>
<p>in Controller/Action/Helper/ViewRenderer.php.</p>
<p>Usually, you would prefix with a "vendor" name, such as Akra. In which case the full class is Akra_Controller_Action_Helper_ViewRenderer which lives in lib/Akra/Controller/Action/Helper/ViewRenderer.php.</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://akrabat.com/php/extending-viewrenderer-for-layouts/#comment-11222</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Tue, 10 Jul 2007 19:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/2007/06/02/extending-viewrenderer-to-support-layout-templates/#comment-11222</guid>
		<description>I&#039;m new to all this and confused...

Where do I save the class file: Controller_Action_Helper_ViewRenderer
??

Thanks
Simon</description>
		<content:encoded><![CDATA[<p>I'm new to all this and confused...</p>
<p>Where do I save the class file: Controller_Action_Helper_ViewRenderer<br />
??</p>
<p>Thanks<br />
Simon</p>
]]></content:encoded>
	</item>
</channel>
</rss>
