<?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 config</title>
	<atom:link href="http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/</link>
	<description>Matthijs van den Bos&#039; thoughts on web development topics</description>
	<lastBuildDate>Sun, 07 Feb 2010 11:10:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: -PK-</title>
		<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/comment-page-1/#comment-1859</link>
		<dc:creator>-PK-</dc:creator>
		<pubDate>Mon, 04 Jan 2010 13:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=66#comment-1859</guid>
		<description>Thank you Len for sharing also your idea.... I&#039;d like to know also Matthijs&#039;s opinion regarding your approach in order to know if he has thought to it too or not. If yes I&#039;d like to know why he has discarded it.

Regards</description>
		<content:encoded><![CDATA[<p>Thank you Len for sharing also your idea&#8230;. I&#8217;d like to know also Matthijs&#8217;s opinion regarding your approach in order to know if he has thought to it too or not. If yes I&#8217;d like to know why he has discarded it.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard Dronkers</title>
		<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/comment-page-1/#comment-1858</link>
		<dc:creator>Leonard Dronkers</dc:creator>
		<pubDate>Sat, 26 Dec 2009 13:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=66#comment-1858</guid>
		<description>Hi,

I tried a similar approach but I think a module should be as its name suggests; modular. Which to me means it can be dropped into any ZF application without dependencies from the main application. And actually writing resource plug-ins defeats that purpose plus Zend_Application_Module_Bootstrap provides all the means necessary. It has its own resource container (Registry) plus is has methods such as set- and getOptions. What I also recognize is that accessing these specific module bootstrap options ore resources could be easier.

Have a look at http://www.sreknord.net/blog/zend-framework/zend-framework-module-config-the-easy-way

As to your solution: you could also use (in your module bootstrap class) $this-&gt;getApplication()-&gt;setOptions() to set the options globally it desired. 

Lastly, I tried your code: I also have routes defined for my modules, your resource class tries to parse those files too, as they have the .ini extension and reside in the same folder which then results into an error.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I tried a similar approach but I think a module should be as its name suggests; modular. Which to me means it can be dropped into any ZF application without dependencies from the main application. And actually writing resource plug-ins defeats that purpose plus Zend_Application_Module_Bootstrap provides all the means necessary. It has its own resource container (Registry) plus is has methods such as set- and getOptions. What I also recognize is that accessing these specific module bootstrap options ore resources could be easier.</p>
<p>Have a look at <a href="http://www.sreknord.net/blog/zend-framework/zend-framework-module-config-the-easy-way" rel="nofollow">http://www.sreknord.net/blog/zend-framework/zend-framework-module-config-the-easy-way</a></p>
<p>As to your solution: you could also use (in your module bootstrap class) $this-&gt;getApplication()-&gt;setOptions() to set the options globally it desired. </p>
<p>Lastly, I tried your code: I also have routes defined for my modules, your resource class tries to parse those files too, as they have the .ini extension and reside in the same folder which then results into an error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: -PK-</title>
		<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/comment-page-1/#comment-1857</link>
		<dc:creator>-PK-</dc:creator>
		<pubDate>Tue, 22 Dec 2009 22:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=66#comment-1857</guid>
		<description>For the points 1 I think it&#039;s better to have it inside. Set a variable if it&#039;s not needed it&#039;s pointless in my opinion this because it&#039;s not said that you will have a specific config file for each module. So the solution provided it&#039;s ok for me.

Viceversa for the pointd 2 and 3 I agree with you. They look strange to me too. I&#039;d like to wait for a Matthijs&#039;s reply.</description>
		<content:encoded><![CDATA[<p>For the points 1 I think it&#8217;s better to have it inside. Set a variable if it&#8217;s not needed it&#8217;s pointless in my opinion this because it&#8217;s not said that you will have a specific config file for each module. So the solution provided it&#8217;s ok for me.</p>
<p>Viceversa for the pointd 2 and 3 I agree with you. They look strange to me too. I&#8217;d like to wait for a Matthijs&#8217;s reply.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: -PK-</title>
		<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/comment-page-1/#comment-1856</link>
		<dc:creator>-PK-</dc:creator>
		<pubDate>Tue, 22 Dec 2009 21:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=66#comment-1856</guid>
		<description>According to point 1 I think it&#039;s better to have it inside, in my opinion it&#039;s pointless to set e variable is it&#039;s not really needed. Especially because appOptions represent the specific module config file and it&#039;s not said that each module will have specific ini.

For the points 2 and 3 I agree with you so far... but maybe we are not seeing something I don&#039;t know... I&#039;d like to wait for a Matthiss&#039;s reply.</description>
		<content:encoded><![CDATA[<p>According to point 1 I think it&#8217;s better to have it inside, in my opinion it&#8217;s pointless to set e variable is it&#8217;s not really needed. Especially because appOptions represent the specific module config file and it&#8217;s not said that each module will have specific ini.</p>
<p>For the points 2 and 3 I agree with you so far&#8230; but maybe we are not seeing something I don&#8217;t know&#8230; I&#8217;d like to wait for a Matthiss&#8217;s reply.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: -PK-</title>
		<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/comment-page-1/#comment-1855</link>
		<dc:creator>-PK-</dc:creator>
		<pubDate>Tue, 22 Dec 2009 21:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=66#comment-1855</guid>
		<description>What is hard to implement? I mean, if you have a bit of confidence with the ZF MVC pattern it shouldn&#039;t be that hard, tell me and I&#039;ll try to help you out.</description>
		<content:encoded><![CDATA[<p>What is hard to implement? I mean, if you have a bit of confidence with the ZF MVC pattern it shouldn&#8217;t be that hard, tell me and I&#8217;ll try to help you out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michelangelo</title>
		<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/comment-page-1/#comment-1852</link>
		<dc:creator>Michelangelo</dc:creator>
		<pubDate>Thu, 17 Dec 2009 18:27:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=66#comment-1852</guid>
		<description>It&#039;s a good job but it is so hard to implement it if we have not a complete project.
Please share your zend project in this page.

thanks</description>
		<content:encoded><![CDATA[<p>It&#8217;s a good job but it is so hard to implement it if we have not a complete project.<br />
Please share your zend project in this page.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemant</title>
		<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/comment-page-1/#comment-1851</link>
		<dc:creator>Hemant</dc:creator>
		<pubDate>Thu, 17 Dec 2009 11:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=66#comment-1851</guid>
		<description>Hi again,

I got my problem&#039;s solution. In fact, Your code is superb but,

According to me, it can be optimized further as follows: 

1. Put &quot;$appOptions = $this-&gt;getBootstrap()-&gt;getOptions();&quot; before all loops.

2. In 

            if (($len = strpos($filename, &#039;.&#039;)) !== false) {
                            $cfgtype = substr($filename, 0, $len);
                        } else {
                            $cfgtype = $filename;
                        }

  following code is not redundant:
                         else {
                            $cfgtype = $filename;
                        }

3. Similarly, last &quot;else&quot; is redundant.

I am sorry if I hurt a programmer&#039;s soul but I am just making a excellent code into perfect one.
(If I am wrong then I&#039;ll happily learn new concept)</description>
		<content:encoded><![CDATA[<p>Hi again,</p>
<p>I got my problem&#8217;s solution. In fact, Your code is superb but,</p>
<p>According to me, it can be optimized further as follows: </p>
<p>1. Put &#8220;$appOptions = $this-&gt;getBootstrap()-&gt;getOptions();&#8221; before all loops.</p>
<p>2. In </p>
<p>            if (($len = strpos($filename, &#8216;.&#8217;)) !== false) {<br />
                            $cfgtype = substr($filename, 0, $len);<br />
                        } else {<br />
                            $cfgtype = $filename;<br />
                        }</p>
<p>  following code is not redundant:<br />
                         else {<br />
                            $cfgtype = $filename;<br />
                        }</p>
<p>3. Similarly, last &#8220;else&#8221; is redundant.</p>
<p>I am sorry if I hurt a programmer&#8217;s soul but I am just making a excellent code into perfect one.<br />
(If I am wrong then I&#8217;ll happily learn new concept)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemant</title>
		<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/comment-page-1/#comment-1850</link>
		<dc:creator>Hemant</dc:creator>
		<pubDate>Tue, 15 Dec 2009 09:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=66#comment-1850</guid>
		<description>Hi Matthijs,

After going through following methods:

http://blog.keppens.biz/2009/06/zend-framework-module-specific-config.html

and 

http://blog.astrumfutura.com/archives/415-Self-Contained-Reusable-Zend-Framework-Modules-With-Standardised-Configurators.html

I found your way is best because its clean and clear.

But can I have separate bootstrap.php for each module? If Yes then kindly highlight.

I want to add an view helper path in a module, how can I add it? (Actually, in non-modular structure I could add in Bootstrap.php but I am facing error)</description>
		<content:encoded><![CDATA[<p>Hi Matthijs,</p>
<p>After going through following methods:</p>
<p><a href="http://blog.keppens.biz/2009/06/zend-framework-module-specific-config.html" rel="nofollow">http://blog.keppens.biz/2009/06/zend-framework-module-specific-config.html</a></p>
<p>and </p>
<p><a href="http://blog.astrumfutura.com/archives/415-Self-Contained-Reusable-Zend-Framework-Modules-With-Standardised-Configurators.html" rel="nofollow">http://blog.astrumfutura.com/archives/415-Self-Contained-Reusable-Zend-Framework-Modules-With-Standardised-Configurators.html</a></p>
<p>I found your way is best because its clean and clear.</p>
<p>But can I have separate bootstrap.php for each module? If Yes then kindly highlight.</p>
<p>I want to add an view helper path in a module, how can I add it? (Actually, in non-modular structure I could add in Bootstrap.php but I am facing error)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Onur</title>
		<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/comment-page-1/#comment-1849</link>
		<dc:creator>Onur</dc:creator>
		<pubDate>Tue, 08 Dec 2009 10:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=66#comment-1849</guid>
		<description>Dear Author,

Thank you very much for this post. It is really very usefull. Could you please send me the all structures codes over this post , module specific frontcontroller plugins post  and per module translation sources post? I and my team debate over a moduler structre for our newest project.

In my opionian you should write a tutorial serials over this subjects. And you can share your codes at SVN.

Best Regards.</description>
		<content:encoded><![CDATA[<p>Dear Author,</p>
<p>Thank you very much for this post. It is really very usefull. Could you please send me the all structures codes over this post , module specific frontcontroller plugins post  and per module translation sources post? I and my team debate over a moduler structre for our newest project.</p>
<p>In my opionian you should write a tutorial serials over this subjects. And you can share your codes at SVN.</p>
<p>Best Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicklas</title>
		<link>http://blog.vandenbos.org/2009/07/07/zend-framework-module-config/comment-page-1/#comment-1800</link>
		<dc:creator>Nicklas</dc:creator>
		<pubDate>Mon, 16 Nov 2009 06:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.vandenbos.org/?p=66#comment-1800</guid>
		<description>Looks like a great solution, but I don&#039;t get the tutorial totally. Could you please attach your total project source zipped in the blog?

/N</description>
		<content:encoded><![CDATA[<p>Looks like a great solution, but I don&#8217;t get the tutorial totally. Could you please attach your total project source zipped in the blog?</p>
<p>/N</p>
]]></content:encoded>
	</item>
</channel>
</rss>
