-
Notifications
You must be signed in to change notification settings - Fork 0
Modular Separation
[h3]Current version[/h3] File:Modular_Separation_2.1.zip
[b]Forum Thread:[/b] http://codeigniter.com/forums/viewthread/46669/ [b]Last update[/b] 29-08-2007
This is a solution for people that are looking for a way to keep associated models, views and controllers in the same directory and thereby making their application more modular.
[h2]Installation[/h2] First of all you should go ahead and grab yourself a copy of the File:Modular_Separation_2.1.zip.
When you are done grabbing, you should place both files in your [i]/application/libraries/[/i] folder.
Finally, you must create the directory [i]/modules/[/i] in your [i]/application/[/i] folder.
And that's it!
[h3]... Unless you are running PHP 4[/h3] In which case you will have to use File:Modular_Separation_PHP4.zip. Download it and overwrite the original in your [i]/codeigniter/[/i] folder.
[h2]Usage[/h2] I would like to start with pointing out that you are still able to use controllers, models and views as usual when using Modular Separation. This also means that you can have global models and views in your standard folders and call them from your modules. If you, on the other hand, want to get rid of the folders then you are free to do so, [b]with the exception of the controllers folder[/b].
Modules should be placed in the /application/modules/ folder. A module is a folder (the foldername is the modulename) containing folders for controllers, models and views, these are not required and you do not have to add folders for e.g. models if you are not including any models within the module.