• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modular Separation - PHP5 (Modules)

#1
[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/codeign...sions-hmvc

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

Feedback is appreciated.

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

#3
[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.

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

EDIT:
deprecated file removed

#5
[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..

#6
[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

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

#8
[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?

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

EDIT:
deprecated file removed

#10
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme ¬© 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.