<?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: On modules</title>
	<atom:link href="http://naneau.nl/2007/06/03/on-modules/feed/" rel="self" type="application/rss+xml" />
	<link>http://naneau.nl/2007/06/03/on-modules/</link>
	<description>Go dik-dik, go!</description>
	<lastBuildDate>Mon, 26 Jul 2010 04:31:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Coretan Budak Leutik &#187; Blog Archive &#187; An object Assigning action Helper</title>
		<link>http://naneau.nl/2007/06/03/on-modules/comment-page-1/#comment-47134</link>
		<dc:creator>Coretan Budak Leutik &#187; Blog Archive &#187; An object Assigning action Helper</dc:creator>
		<pubDate>Tue, 17 Feb 2009 21:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/03/on-modules/#comment-47134</guid>
		<description>[...] different. I have mentioned this on my blog before, but it keeps popping up. If you plan on writing modules for an application, it pays to design them in such a way that they can be re-used in another [...]</description>
		<content:encoded><![CDATA[<p>[...] different. I have mentioned this on my blog before, but it keeps popping up. If you plan on writing modules for an application, it pays to design them in such a way that they can be re-used in another [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Klaas van der Weij</title>
		<link>http://naneau.nl/2007/06/03/on-modules/comment-page-1/#comment-29004</link>
		<dc:creator>Klaas van der Weij</dc:creator>
		<pubDate>Fri, 29 Aug 2008 15:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/03/on-modules/#comment-29004</guid>
		<description>I merely want to repeate &#039;Programmer&#039;, so I will:

I just want to say that your post saved my ass. As a newbie I would never check the ModuleName_IndexController catch.
Thank you!

Browsing the web for modular-setup tutorials whole of the afternoon, and nowhere is stated that the controllername within a module should be prepended with the module name. Ok, I overlooked this perhaps, but finally ...

Thanks again.</description>
		<content:encoded><![CDATA[<p>I merely want to repeate &#8216;Programmer&#8217;, so I will:</p>
<p>I just want to say that your post saved my ass. As a newbie I would never check the ModuleName_IndexController catch.<br />
Thank you!</p>
<p>Browsing the web for modular-setup tutorials whole of the afternoon, and nowhere is stated that the controllername within a module should be prepended with the module name. Ok, I overlooked this perhaps, but finally &#8230;</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://naneau.nl/2007/06/03/on-modules/comment-page-1/#comment-21411</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Thu, 05 Jun 2008 20:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/03/on-modules/#comment-21411</guid>
		<description>After reading all this alot more makes sense to me now but I still have one problem...

My bootstrap is as shown:
  $controller = Zend_Controller_Front::getInstance();
  $controller-&gt;addModuleDirectory(&#039;/home/digi/include/modules&#039;);
  $controller-&gt;setDefaultModule(&#039;/home/digi/include/modules/default&#039;);
  $controller-&gt;setParam(&#039;useDefaultControllerAlways&#039;, true);

I have tried this with and without both setDefaultModule and also setParam too which both keep giving me &quot;No default module defined for this application&quot; althought I have checked and checked again and the settings seem right.

If I try doing it this way:
$controller-&gt;setControllerDirectory(array(
	&#039;default&#039; =&gt;  $config-&gt;paths-&gt;base . &#039;include/default/Controllers&#039;,
        &#039;zone&#039;    =&gt;  $config-&gt;paths-&gt;base . &#039;include/zone/Controllers&#039;,
	&#039;admin&#039;   =&gt;  $config-&gt;paths-&gt;base . &#039;include/admin/Controllers&#039;
	));

This all works OK. I seem to be getting very confused here somewhere?!....

My directory structure is: 
include/
   modules/
           default/
           Controller/
                 IndexController.php

and so forth.....

Can anyone shed any light on this for me please?</description>
		<content:encoded><![CDATA[<p>After reading all this alot more makes sense to me now but I still have one problem&#8230;</p>
<p>My bootstrap is as shown:<br />
  $controller = Zend_Controller_Front::getInstance();<br />
  $controller-&gt;addModuleDirectory(&#8216;/home/digi/include/modules&#8217;);<br />
  $controller-&gt;setDefaultModule(&#8216;/home/digi/include/modules/default&#8217;);<br />
  $controller-&gt;setParam(&#8216;useDefaultControllerAlways&#8217;, true);</p>
<p>I have tried this with and without both setDefaultModule and also setParam too which both keep giving me &#8220;No default module defined for this application&#8221; althought I have checked and checked again and the settings seem right.</p>
<p>If I try doing it this way:<br />
$controller-&gt;setControllerDirectory(array(<br />
	&#8216;default&#8217; =&gt;  $config-&gt;paths-&gt;base . &#8216;include/default/Controllers&#8217;,<br />
        &#8216;zone&#8217;    =&gt;  $config-&gt;paths-&gt;base . &#8216;include/zone/Controllers&#8217;,<br />
	&#8216;admin&#8217;   =&gt;  $config-&gt;paths-&gt;base . &#8216;include/admin/Controllers&#8217;<br />
	));</p>
<p>This all works OK. I seem to be getting very confused here somewhere?!&#8230;.</p>
<p>My directory structure is:<br />
include/<br />
   modules/<br />
           default/<br />
           Controller/<br />
                 IndexController.php</p>
<p>and so forth&#8230;..</p>
<p>Can anyone shed any light on this for me please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David&#8217;s Tech Blog &#187; Blog Archive &#187; Zend Framework</title>
		<link>http://naneau.nl/2007/06/03/on-modules/comment-page-1/#comment-16701</link>
		<dc:creator>David&#8217;s Tech Blog &#187; Blog Archive &#187; Zend Framework</dc:creator>
		<pubDate>Sun, 02 Mar 2008 15:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/03/on-modules/#comment-16701</guid>
		<description>[...] part out, but most of that was me trying to get it to do variations. There are some pretty good articles about how to do this in addition to the [...]</description>
		<content:encoded><![CDATA[<p>[...] part out, but most of that was me trying to get it to do variations. There are some pretty good articles about how to do this in addition to the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Programmer</title>
		<link>http://naneau.nl/2007/06/03/on-modules/comment-page-1/#comment-16321</link>
		<dc:creator>Programmer</dc:creator>
		<pubDate>Thu, 28 Feb 2008 17:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/03/on-modules/#comment-16321</guid>
		<description>I just want to say that your post saved my ass. As a newbie I would never check the ModuleName_IndexController catch. 
Thank you!</description>
		<content:encoded><![CDATA[<p>I just want to say that your post saved my ass. As a newbie I would never check the ModuleName_IndexController catch.<br />
Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Esqueleto para empezar una aplicación modular o única con Zend Framework(ZF) &#171; CuatroXL - Cuatro Xl</title>
		<link>http://naneau.nl/2007/06/03/on-modules/comment-page-1/#comment-14720</link>
		<dc:creator>Esqueleto para empezar una aplicación modular o única con Zend Framework(ZF) &#171; CuatroXL - Cuatro Xl</dc:creator>
		<pubDate>Sun, 10 Feb 2008 22:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/03/on-modules/#comment-14720</guid>
		<description>[...] original:  http://andries.systray.be metodología de funcionamiento: http://naneau.nl     &#171; ¿Quieres saber quién te tiene no admitido/eliminado en el MSN? Pues no des tu [...]</description>
		<content:encoded><![CDATA[<p>[...] original:  <a href="http://andries.systray.be" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/andries.systray.be?referer=');">http://andries.systray.be</a> metodología de funcionamiento: <a href="http://naneau.nl" rel="nofollow">http://naneau.nl</a>     &laquo; ¿Quieres saber quién te tiene no admitido/eliminado en el MSN? Pues no des tu [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Framework, just get me started, okay? &#171; Andries Seutens - Modern Web Development</title>
		<link>http://naneau.nl/2007/06/03/on-modules/comment-page-1/#comment-792</link>
		<dc:creator>Zend Framework, just get me started, okay? &#171; Andries Seutens - Modern Web Development</dc:creator>
		<pubDate>Tue, 03 Jul 2007 21:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/03/on-modules/#comment-792</guid>
		<description>[...] Naneau explain a modular setup in more details here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Naneau explain a modular setup in more details here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fred</title>
		<link>http://naneau.nl/2007/06/03/on-modules/comment-page-1/#comment-755</link>
		<dc:creator>fred</dc:creator>
		<pubDate>Thu, 28 Jun 2007 10:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/03/on-modules/#comment-755</guid>
		<description>Thank you Maurice,

the Spotsec solution is interesting, but it doesn&#039;t fit my need. I keep it in mind though. I&#039;d go for a “global” directory and have the models there too. Got to try it, I will let you know the problems encountered (there are always problems...:)).

regards,

fred</description>
		<content:encoded><![CDATA[<p>Thank you Maurice,</p>
<p>the Spotsec solution is interesting, but it doesn&#8217;t fit my need. I keep it in mind though. I&#8217;d go for a “global” directory and have the models there too. Got to try it, I will let you know the problems encountered (there are always problems&#8230;:)).</p>
<p>regards,</p>
<p>fred</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naneau</title>
		<link>http://naneau.nl/2007/06/03/on-modules/comment-page-1/#comment-743</link>
		<dc:creator>Naneau</dc:creator>
		<pubDate>Wed, 27 Jun 2007 13:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/03/on-modules/#comment-743</guid>
		<description>You are clear enough, it&#039;s a good question. Sometimes it makes sense to let a module have it&#039;s own models, from an architectural point of view. Other times, there are models that should work application-wide. The decision to split an application into modules can be based on many factors, logical grouping of models is one of them.

As for application-wide models, there is no convention yet on where to put them. Personally, I&#039;d go for a &quot;global&quot; directory under your application&#039;s directory, and have the models there. Others would say that global models should be under the default module. Either way, the important part is that they are in you include path.

Spotsec has a solution for adding the models subdirectories of your modules to your include path transparently. Check out: http://www.spotsec.com/blogs/archive/zend-model-loading-modelloader.html?Itemid=125</description>
		<content:encoded><![CDATA[<p>You are clear enough, it&#8217;s a good question. Sometimes it makes sense to let a module have it&#8217;s own models, from an architectural point of view. Other times, there are models that should work application-wide. The decision to split an application into modules can be based on many factors, logical grouping of models is one of them.</p>
<p>As for application-wide models, there is no convention yet on where to put them. Personally, I&#8217;d go for a &#8220;global&#8221; directory under your application&#8217;s directory, and have the models there. Others would say that global models should be under the default module. Either way, the important part is that they are in you include path.</p>
<p>Spotsec has a solution for adding the models subdirectories of your modules to your include path transparently. Check out: <a href="http://www.spotsec.com/blogs/archive/zend-model-loading-modelloader.html?Itemid=125" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/www.spotsec.com/blogs/archive/zend-model-loading-modelloader.html?Itemid=125&amp;referer=');">http://www.spotsec.com/blogs/archive/zend-model-loading-modelloader.html?Itemid=125</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fred</title>
		<link>http://naneau.nl/2007/06/03/on-modules/comment-page-1/#comment-741</link>
		<dc:creator>fred</dc:creator>
		<pubDate>Wed, 27 Jun 2007 11:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://naneau.nl/2007/06/03/on-modules/#comment-741</guid>
		<description>Hi Maurice,

first of all, i didn&#039;t take the time yet to thank you  for your blog. I enjoy reading it. 

Now, I have a question about modules. Every single example about it, shows the model directory under the module one. Does it mean that if two modules need the same model classes, I shouldn&#039;t have my code split into thi two modules ? I mean, is the model access a criteria to consider whether an application should be split into several modules ?

Hum...don&#039;t know if I&#039;m clear enough...

Regards,

fred</description>
		<content:encoded><![CDATA[<p>Hi Maurice,</p>
<p>first of all, i didn&#8217;t take the time yet to thank you  for your blog. I enjoy reading it. </p>
<p>Now, I have a question about modules. Every single example about it, shows the model directory under the module one. Does it mean that if two modules need the same model classes, I shouldn&#8217;t have my code split into thi two modules ? I mean, is the model access a criteria to consider whether an application should be split into several modules ?</p>
<p>Hum&#8230;don&#8217;t know if I&#8217;m clear enough&#8230;</p>
<p>Regards,</p>
<p>fred</p>
]]></content:encoded>
	</item>
</channel>
</rss>
