<?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: module specific layout</title>
	<atom:link href="http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/</link>
	<description>Matthijs van den Bos&#039; thoughts on web development topics</description>
	<lastBuildDate>Tue, 13 Jul 2010 05:03:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Behrang</title>
		<link>http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/comment-page-1/#comment-1881</link>
		<dc:creator>Behrang</dc:creator>
		<pubDate>Sat, 29 May 2010 06:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=130#comment-1881</guid>
		<description>Hi I&#039;m newbie in zend so please tell me where exactly put the class with which file name and path I need it.
thanks</description>
		<content:encoded><![CDATA[<p>Hi I&#8217;m newbie in zend so please tell me where exactly put the class with which file name and path I need it.<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eijunk</title>
		<link>http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/comment-page-1/#comment-1880</link>
		<dc:creator>eijunk</dc:creator>
		<pubDate>Wed, 26 May 2010 17:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=130#comment-1880</guid>
		<description>Hi,

Thank you for your helpful articles.

To get my scripts work fine, I needed to change some parts of the example.
And I hope my comment here would help those who are struggling.

I use application.ini for module configuration, and its settings are as follows:

;default module
default.resources.layout.layout = &quot;layout&quot;
default.resources.layout.layoutPath = APPLICATION_PATH &quot;/layouts/scripts/&quot;
^^^^^^^^
;admin module
admin.resources.layout.layout = &quot;adminlayout&quot;
admin.resources.layout.layoutPath = APPLICATION_PATH &quot;/modules/admin/layouts/scripts/&quot;

And I edited some lines of your LayoutLoader script as follows:

//$moduleDir = Zend_Controller_Front::getInstance()-&gt;getModuleDirectory();
Zend_Layout::getMvcInstance()-&gt;setLayoutPath($layoutPath);

Since the layoutPaths of my configuration are defined with absolute paths, I needed to change the parameter for the setLayoutPath() method.


Best wishes.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thank you for your helpful articles.</p>
<p>To get my scripts work fine, I needed to change some parts of the example.<br />
And I hope my comment here would help those who are struggling.</p>
<p>I use application.ini for module configuration, and its settings are as follows:</p>
<p>;default module<br />
default.resources.layout.layout = &#8220;layout&#8221;<br />
default.resources.layout.layoutPath = APPLICATION_PATH &#8220;/layouts/scripts/&#8221;<br />
^^^^^^^^<br />
;admin module<br />
admin.resources.layout.layout = &#8220;adminlayout&#8221;<br />
admin.resources.layout.layoutPath = APPLICATION_PATH &#8220;/modules/admin/layouts/scripts/&#8221;</p>
<p>And I edited some lines of your LayoutLoader script as follows:</p>
<p>//$moduleDir = Zend_Controller_Front::getInstance()-&gt;getModuleDirectory();<br />
Zend_Layout::getMvcInstance()-&gt;setLayoutPath($layoutPath);</p>
<p>Since the layoutPaths of my configuration are defined with absolute paths, I needed to change the parameter for the setLayoutPath() method.</p>
<p>Best wishes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darryl E. Clarke &#187; Blog Archive &#187; Multiple Paths for Zend_Layout (Modules Based Layouts)</title>
		<link>http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/comment-page-1/#comment-1869</link>
		<dc:creator>Darryl E. Clarke &#187; Blog Archive &#187; Multiple Paths for Zend_Layout (Modules Based Layouts)</dc:creator>
		<pubDate>Tue, 30 Mar 2010 15:45:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=130#comment-1869</guid>
		<description>[...] on freenode, so I thought I&#8217;d explore the idea a bit more.  There was this particular idea to use a plugin and a bit of application.ini/xml settings to configure it all.  But I&#8217;m a bit old school [...]</description>
		<content:encoded><![CDATA[<p>[...] on freenode, so I thought I&#8217;d explore the idea a bit more.  There was this particular idea to use a plugin and a bit of application.ini/xml settings to configure it all.  But I&#8217;m a bit old school [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahmoud</title>
		<link>http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/comment-page-1/#comment-1864</link>
		<dc:creator>Mahmoud</dc:creator>
		<pubDate>Sun, 07 Feb 2010 11:10:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=130#comment-1864</guid>
		<description>Hi,

I was pulling the last few hairs out of my head when I stumbled upon this code along with the Module Config one.

I really can&#039;t thank you enough ... Your&#039;re awsome

I&#039;d like to suggest resetting the options of all the resources, any thoughts about that?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I was pulling the last few hairs out of my head when I stumbled upon this code along with the Module Config one.</p>
<p>I really can&#8217;t thank you enough &#8230; Your&#8217;re awsome</p>
<p>I&#8217;d like to suggest resetting the options of all the resources, any thoughts about that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: axm</title>
		<link>http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/comment-page-1/#comment-1862</link>
		<dc:creator>axm</dc:creator>
		<pubDate>Fri, 15 Jan 2010 11:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=130#comment-1862</guid>
		<description>We would really profit a lot if you could post some Source Code from your implementations. 

I cannot get it running having a unique layout for each module, it is always refering to the main module.</description>
		<content:encoded><![CDATA[<p>We would really profit a lot if you could post some Source Code from your implementations. </p>
<p>I cannot get it running having a unique layout for each module, it is always refering to the main module.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Tay</title>
		<link>http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/comment-page-1/#comment-1854</link>
		<dc:creator>David Tay</dc:creator>
		<pubDate>Sun, 20 Dec 2009 05:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=130#comment-1854</guid>
		<description>Scratch that last comment.</description>
		<content:encoded><![CDATA[<p>Scratch that last comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Tay</title>
		<link>http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/comment-page-1/#comment-1853</link>
		<dc:creator>David Tay</dc:creator>
		<pubDate>Sun, 20 Dec 2009 05:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=130#comment-1853</guid>
		<description>I ended up put this in the module.ini:

resources.frontController.plugins.layoutloader = Rexus_Controller_Plugin_RequestedModuleLayoutLoader

and then it finally worked.</description>
		<content:encoded><![CDATA[<p>I ended up put this in the module.ini:</p>
<p>resources.frontController.plugins.layoutloader = Rexus_Controller_Plugin_RequestedModuleLayoutLoader</p>
<p>and then it finally worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Framework , wamp and bootstrap! &#171; {&#34;sintax&#34;:[&#34;Flex&#34;,&#34;Flash&#34;,&#34;AS3&#34;,&#34;etc&#34;]}</title>
		<link>http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/comment-page-1/#comment-1742</link>
		<dc:creator>Zend Framework , wamp and bootstrap! &#171; {&#34;sintax&#34;:[&#34;Flex&#34;,&#34;Flash&#34;,&#34;AS3&#34;,&#34;etc&#34;]}</dc:creator>
		<pubDate>Fri, 28 Aug 2009 04:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=130#comment-1742</guid>
		<description>[...] http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/" rel="nofollow">http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicolas</title>
		<link>http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/comment-page-1/#comment-1112</link>
		<dc:creator>nicolas</dc:creator>
		<pubDate>Wed, 12 Aug 2009 13:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=130#comment-1112</guid>
		<description>Hi

Just needed to add:

    public function init() {
        Zend_Layout::startMvc();
    }

to your class to make it work. I guess it can be some other issue, anyway it could be useful to post this.

Thanks, great work with the modules thing for Zend Framework</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Just needed to add:</p>
<p>    public function init() {<br />
        Zend_Layout::startMvc();<br />
    }</p>
<p>to your class to make it work. I guess it can be some other issue, anyway it could be useful to post this.</p>
<p>Thanks, great work with the modules thing for Zend Framework</p>
]]></content:encoded>
	</item>
</channel>
</rss>
