CodeIgniter Forums
Modular Separation - PHP5 (Modules) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Modular Separation - PHP5 (Modules) (/showthread.php?tid=20208)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


Modular Separation - PHP5 (Modules) - El Forum - 07-01-2009

[eluser]wiredesignz[/eluser]
I have created a set of module library extensions which provide the modular separation part of the Modular Extensions HMVC libraries, without the HMVC component.

Update:
Modular Separation now runs on the same code base as Modular Extensions - HMVC and is available via my bitbucket repository.

http://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc

Check it out, to use Modular Separation only, simply do not include the MX/Controller file.

Feedback is appreciated.


Modular Separation - PHP5 (Modules) - El Forum - 08-03-2009

[eluser]Johan André[/eluser]
What exactly does this do?
What is the difference between this and Modular Extensions HMVC?


Modular Separation - PHP5 (Modules) - El Forum - 08-03-2009

[eluser]wiredesignz[/eluser]
Hi Johan,

Modular Separation allows you to use modules for code organization in your application while only using a single controller per request. (no HMVC)

It works the same way as Zach's Matchbox, But is much faster in execution and does the job without using additional module_xxxx() calls.

Modules now comply with CI 1.7.2 also, Controllers in sub-directories are supported and resources may be cross loaded from other modules.

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.


Modular Separation - PHP5 (Modules) - El Forum - 08-19-2009

[eluser]wiredesignz[/eluser]
Modular Separation - PHP5 version 1.01 is attached to this post. As usual any feedback is appreciated.

EDIT:
deprecated file removed


Modular Separation - PHP5 (Modules) - El Forum - 08-26-2009

[eluser]Dhanova[/eluser]
hi wiredesignz,

i did a quick test for this, use Modular Separation 1.1 running on fresh CI 1.7.1 installed. Seems {elapsed_time} doesn't work.

thanks..


Modular Separation - PHP5 (Modules) - El Forum - 08-29-2009

[eluser]wiredesignz[/eluser]
Modular Separation - PHP5 version 1.02 is attached to this post.

Fixed MY_Loader bug when loading or reloading libraries.

@Dhanova, I cannot reproduce your {elapsed_time} problem.

EDIT:
deprecated file removed


Modular Separation - PHP5 (Modules) - El Forum - 08-30-2009

[eluser]darkhouse[/eluser]
wiredesignz: this sounds very cool, can't wait to test it out. Thanks!


Modular Separation - PHP5 (Modules) - El Forum - 08-31-2009

[eluser]Dhanova[/eluser]
This is my steps:
- extract a fresh CI 1.7.1 (or 1.7.2) to local server and change the base url to respect my installation dir
- hit a base url:
Code:
http://localhost/ci_test/


- output: welcome message with correct elapsed time (eg. Page rendered in 0.0157 seconds)

- extract a fresh Modular Separation 11 (or 12) and put MY_Loader.php and MY_Router.php in application/libraries
- hit a base url:
Code:
http://localhost/ci_test/


- output: welcome message with incorrect elapsed time (at the bottom: Page rendered in {elapsed_time} seconds)

Did anyone have a same problem with me?


Modular Separation - PHP5 (Modules) - El Forum - 09-24-2009

[eluser]wiredesignz[/eluser]
Modular Separation - PHP5 version 1.03 is attached to this post.

EDIT:
deprecated file removed


Modular Separation - PHP5 (Modules) - El Forum - 10-13-2009

[eluser]Phil Sturgeon[/eluser]
I like this so far, it seems to require a LOT less code to get it working nicely.

Does it support modular language files? I can't spot anything in the code that suggests it would.

Also, I see no reason for database(), helpers(), models(), plugins() or _ci_assign_to_models() to be in MY_Loader as they are no different to the parent class.