...

World Wide Web Server 2012-07-04 16:03:36 -07:00
parent 9e5cb31085
commit 9905999de9

@ -1,5 +1,5 @@
[h3]Description[/h3]
Modular Separation allows you to use modules for code organization in your application while only using a single controller per request. Instead of placing all of your controllers, models and views in the same folders you can have a "module" for each section of your site then place the MVC elements in there. This is known as HMVC (Hierarchical MVC).
Modular Separation allows you to use modules for code organization in your application while only using a single controller per request. Instead of placing all of your controllers, models and views in the same folders you can have a "module" for each section of your site then place the MVC elements in there. This is known as Modular MVC.
You should be able to take any CodeIgniter application and place it into a module and it should work without alteration. However routes might need altering to allow for the added separation of a module.
@ -20,7 +20,9 @@ You should be able to take any CodeIgniter application and place it into a modul
[url=/wiki/Modular_Extensions_-_HMVC/]Modular Extensions (HMVC)[/url] or [url=/wiki/Matchbox/]Matchbox[/url]. The two systems offer similar features but are not as up to date as Modular Separation.
Modular Extensions is an older system that maintains support for PHP 4 and allows controllers to be called between each other. This is a feature that breaks MVC methodology and confuses HMVC development. Modular Separation drops PHP 4 support and adds many awesome new features not available in ME.
Modular Extensions is an older system that maintains support for PHP 4 and allows controllers to be called between each other. This is a feature that is very useful in certain situations but more often than not just confuses new CodeIgniter developers who over-use this memory-hungry feature instead of just placing shared logic into libraries.
Modular Separation drops PHP 4 support and adds many awesome new features not available in ME such as $route['404'] routing for your errors, multiple module locations and more.
Matchbox is a great system but also maintains support for PHP 4 and uses additional $this->load->module_xxxx() calls which break standard CodeIgniter practices. Modular Separation uses $this->load->xxxx('module/item') instead.