<?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: Organizing your code with folders</title>
	<atom:link href="http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:12:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: CakePHP Developer Links - PRONIQUE Software</title>
		<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/comment-page-1/#comment-216986</link>
		<dc:creator>CakePHP Developer Links - PRONIQUE Software</dc:creator>
		<pubDate>Thu, 11 Aug 2011 00:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/#comment-216986</guid>
		<description>[...] : ArticlesBrief Overview of the new EmailComponent &#124; The Bakery, Everything CakePHP : Articlescakebaker » Organizing your code with foldersHow Easy Are Web Services in CakePHP 1.2? Really Easy! — @TheKeyboardDeprecated stuff in CakePHP [...]</description>
		<content:encoded><![CDATA[<p>[...] : ArticlesBrief Overview of the new EmailComponent | The Bakery, Everything CakePHP : Articlescakebaker » Organizing your code with foldersHow Easy Are Web Services in CakePHP 1.2? Really Easy! — @TheKeyboardDeprecated stuff in CakePHP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/comment-page-1/#comment-63866</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Wed, 06 Feb 2008 16:23:17 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/#comment-63866</guid>
		<description>@Peter: I think that&#039;s the planned process. And as you already group the views by controller I don&#039;t see the need for a more flexible way to organize views. But as I don&#039;t know what features are planned, it is possible that such a feature will be implemented in the future. We will see :)</description>
		<content:encoded><![CDATA[<p>@Peter: I think that&#8217;s the planned process. And as you already group the views by controller I don&#8217;t see the need for a more flexible way to organize views. But as I don&#8217;t know what features are planned, it is possible that such a feature will be implemented in the future. We will see :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Lombardo</title>
		<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/comment-page-1/#comment-63610</link>
		<dc:creator>Peter Lombardo</dc:creator>
		<pubDate>Tue, 05 Feb 2008 21:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/#comment-63610</guid>
		<description>It&#039;s a nice feature although a bit confusing.  Usually there are many views to a single controller so grouping of views would seem higher priority if argued by pure number of files.

We&#039;re grouping controllers as mentioned above and in those controllers we have to specifically set $this-&gt;viewPath for cake to find the correct view which is also stored in a subdirectory below views.

Maybe this is the planned process or is it just that the auto-find for views hasn&#039;t been completed yet?</description>
		<content:encoded><![CDATA[<p>It&#8217;s a nice feature although a bit confusing.  Usually there are many views to a single controller so grouping of views would seem higher priority if argued by pure number of files.</p>
<p>We&#8217;re grouping controllers as mentioned above and in those controllers we have to specifically set $this-&gt;viewPath for cake to find the correct view which is also stored in a subdirectory below views.</p>
<p>Maybe this is the planned process or is it just that the auto-find for views hasn&#8217;t been completed yet?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/comment-page-1/#comment-52323</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 04 Jan 2008 16:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/#comment-52323</guid>
		<description>@Robby: No, this doesn&#039;t work with views. 

@Pravin: You can define multiple database connections in app/config/database.php and then in your model you specify with the variable $useDbConfig which connection should be used by the respective model.</description>
		<content:encoded><![CDATA[<p>@Robby: No, this doesn&#8217;t work with views. </p>
<p>@Pravin: You can define multiple database connections in app/config/database.php and then in your model you specify with the variable $useDbConfig which connection should be used by the respective model.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pravin Gundawar</title>
		<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/comment-page-1/#comment-52106</link>
		<dc:creator>Pravin Gundawar</dc:creator>
		<pubDate>Fri, 04 Jan 2008 09:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/#comment-52106</guid>
		<description>Similarly how can we use multiple databases as we can organize models and controllers</description>
		<content:encoded><![CDATA[<p>Similarly how can we use multiple databases as we can organize models and controllers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robby</title>
		<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/comment-page-1/#comment-51845</link>
		<dc:creator>Robby</dc:creator>
		<pubDate>Fri, 04 Jan 2008 00:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/#comment-51845</guid>
		<description>I tried doing this with controllers, and it worked nicely (be interesting to see what happens with name conflicts) - but its not working with views. Is it supposed to with views?</description>
		<content:encoded><![CDATA[<p>I tried doing this with controllers, and it worked nicely (be interesting to see what happens with name conflicts) &#8211; but its not working with views. Is it supposed to with views?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/comment-page-1/#comment-49030</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 27 Dec 2007 16:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/#comment-49030</guid>
		<description>@Tim: Yes, sometimes it would be really useful if you could group certain classes together. At least to a certain degree you can do that with plug-ins or by setting additional view paths, but it is not very handy in my opinion.</description>
		<content:encoded><![CDATA[<p>@Tim: Yes, sometimes it would be really useful if you could group certain classes together. At least to a certain degree you can do that with plug-ins or by setting additional view paths, but it is not very handy in my opinion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Daldini</title>
		<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/comment-page-1/#comment-48811</link>
		<dc:creator>Tim Daldini</dc:creator>
		<pubDate>Thu, 27 Dec 2007 00:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/#comment-48811</guid>
		<description>Not sure if this is what Dieter or Zonium is also saying but I think it would be useful to group certain classes, (especially views and controllers) together...maybe even in the same directory.

Sometimes I think it would be cool if controllers could be split up in that way that each action represents a file and these files could be grouped with corresponding views or something.

But then again, that really resembles the ASP.NET codebehind concept...oh well.</description>
		<content:encoded><![CDATA[<p>Not sure if this is what Dieter or Zonium is also saying but I think it would be useful to group certain classes, (especially views and controllers) together&#8230;maybe even in the same directory.</p>
<p>Sometimes I think it would be cool if controllers could be split up in that way that each action represents a file and these files could be grouped with corresponding views or something.</p>
<p>But then again, that really resembles the ASP.NET codebehind concept&#8230;oh well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/comment-page-1/#comment-40674</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 06 Dec 2007 16:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/#comment-40674</guid>
		<description>@brandon: Thanks for your answer!

Yes, you can also add behaviors to that list. I always forget them, as I don&#039;t use them very often ;-)  

2) Hm, I don&#039;t understand what you mean with &quot;making 3rd party classes/packages work with cake&quot;. Usually, you don&#039;t have any control about 3rd party classes and you cannot change them (well, you could change them, but if there is an update you have to re-apply your changes). 

I would like to see a PHP5-only version of Cake, too. Unfortunately, PHP4 is still widespread...</description>
		<content:encoded><![CDATA[<p>@brandon: Thanks for your answer!</p>
<p>Yes, you can also add behaviors to that list. I always forget them, as I don&#8217;t use them very often ;-)  </p>
<p>2) Hm, I don&#8217;t understand what you mean with &#8220;making 3rd party classes/packages work with cake&#8221;. Usually, you don&#8217;t have any control about 3rd party classes and you cannot change them (well, you could change them, but if there is an update you have to re-apply your changes). </p>
<p>I would like to see a PHP5-only version of Cake, too. Unfortunately, PHP4 is still widespread&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon</title>
		<link>http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/comment-page-1/#comment-40081</link>
		<dc:creator>brandon</dc:creator>
		<pubDate>Tue, 04 Dec 2007 22:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/11/22/organizing-your-code-with-folders/#comment-40081</guid>
		<description>@cakebaker

Beauty is in the eye of the beholder :) I see the code and my brain goes &quot;ah, thats a component because it says component&quot;.  But I agree with you that the concepts of both helpers and components need to be refined.  Actually, IMO, you can add behaviors to that list too :)

Why behaviors? Again, mainly because of naming conflicts.  If you have two behaviors that have a semantically equivalent method names (which is legal in PHP) :

Behavior1::test();
Behavior2::test();
Model ... $actsAs = array(&#039;Behavior1&#039;, &#039;Behavior2&#039;);
Question: Which behavior does $this-&gt;Model-&gt;test() refer to?

Not sure if this issue has been looked into or fixed but you can imagine how this would be a major conflict! I have already ran into the problem where you can&#039;t have method names that match Model&#039;s methods:  read(), create(), etc.

2. Glad you agree! I think more time should be invested into making 3rd party classes/packages work WITH cake (not along side it).  The argument could be made that any class within cake can be extended -- but you get into situations where sloppy programming can overwrite dependent code.  I&#039;d personally like to see cake branch off a PHP5 version and take advantage of these concepts and practices.

Also, thanks for bringing up testing.  That would be so great because then new classes/packages could be run against the core tests (there is no need for developers to create redundant tests).</description>
		<content:encoded><![CDATA[<p>@cakebaker</p>
<p>Beauty is in the eye of the beholder :) I see the code and my brain goes &#8220;ah, thats a component because it says component&#8221;.  But I agree with you that the concepts of both helpers and components need to be refined.  Actually, IMO, you can add behaviors to that list too :)</p>
<p>Why behaviors? Again, mainly because of naming conflicts.  If you have two behaviors that have a semantically equivalent method names (which is legal in PHP) :</p>
<p>Behavior1::test();<br />
Behavior2::test();<br />
Model &#8230; $actsAs = array(&#8216;Behavior1&#8242;, &#8216;Behavior2&#8242;);<br />
Question: Which behavior does $this-&gt;Model-&gt;test() refer to?</p>
<p>Not sure if this issue has been looked into or fixed but you can imagine how this would be a major conflict! I have already ran into the problem where you can&#8217;t have method names that match Model&#8217;s methods:  read(), create(), etc.</p>
<p>2. Glad you agree! I think more time should be invested into making 3rd party classes/packages work WITH cake (not along side it).  The argument could be made that any class within cake can be extended &#8212; but you get into situations where sloppy programming can overwrite dependent code.  I&#8217;d personally like to see cake branch off a PHP5 version and take advantage of these concepts and practices.</p>
<p>Also, thanks for bringing up testing.  That would be so great because then new classes/packages could be run against the core tests (there is no need for developers to create redundant tests).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

