Wednesday, June 20, 2012

Re: Modules

On Thursday, June 21, 2012 7:26:44 AM UTC+7, the_woodsman wrote:
+1 for being able to configure Cake like this!

IMHO, there's something much more elegant in the dir structure:

/Users
  /controllers
  /models
  /views

/Articles
  /controllers,
  etc!


There's practically no difference to sticking those under APP/Plugin/Users and APP/Plugin/Articles.

Many other frameworks take this approach, and to me it  seems easier to modularise your code  - for example, if you wanted to share some code, but for whatever  reason didn't  want to use a plugin, you could just do  an svn external (or export, or copy, etc etc) to get a nice working component.

I like the separation.  I *know* that 3rd party files can always be found under APP/Plugin.
 
On Wednesday, 20 June 2012 15:37:13 UTC+1, André Luis wrote:
Is there any way to use modules in CakePHP, it should work like
plugins, but i dont want to use plugins to create modules... it would
have it´s own Model, View and Controller folders inside...

Why not just use plugins then ? 

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: