On Thursday, 21 June 2012 18:23:44 UTC+2, Ratty wrote:
>
> On 21/06/12 14:44, Andr� Luis wrote: 
> > It�s not the cause of being appropriate or not, but i would like to 
> > use plugins folder ONLY for really PLUGINS, wich i dont change 
> > anything, just use... Modular will work ONLY for that application. 
> You should not be changing any plugin code anyway. 


That's only true if the plugin code is not-yours.

I think there is generally a lot of confusion in this thread about what 
plugins are. So let's attempt to clear that up: *A plugin is just a 
namespace.*
*
*
It's just the name of a folder with "stuff" in it. That stuff can be almost 
anything. There are several common types of stuff:

 * Someone else's code you are using [1]
 * Some of your own code you share between projects
 * A place to put any random class/code in a neat box
 * Atomic parts of your application [2]

The last one is the most relevant to the first post in this thread. For 
example, the apps I work with right now use 5-15 plugins, their app 
controller/model/view folders are typically empty.

In addition you can organize your paths any way you want - if you want a 
"modules" folder you can just do:

    App::build(array('Plugin', array('Modules'));   

A real example of what Andre or the_woodsman mean when they talk about 
modules would probably clear a lot of things up so if either of you would 
like to fill out this template:

-----
Right now using cake files are here:

     <real example>

Using plugins files would look like this:

    <real example reorganized>

Using modules files would look like this:

    <real example reorganized>
-----

that would be peachy.

AD

[1] This is ONE TYPE of plugin. it is not the definition of a plugin
[2] This is a "module"

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to