Part of the EllisLab Network
   
1 of 24
1
Modular Separation - PHP5 (Modules)
Posted: 01 July 2009 10:38 PM   [ Ignore ]  
Sr. Research Associate
RankRankRankRankRank
Total Posts:  2653
Joined  06-10-2007

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.

 Signature 

URI Language Identifier | Modular Extensions - HMVC | Modular Separation - PHP5 | Widget plugin | Access Control library

Profile
 
 
Posted: 03 August 2009 09:04 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  433
Joined  03-28-2008

What exactly does this do?
What is the difference between this and Modular Extensions HMVC?

 Signature 

———————————————————————————————————————————-
Imac 24” C2D 3.06Ghz / 4GB RAM / Geforce 8800GS 512MB
Macbook Pro 15” C2D 2.53Ghz / 4GB RAM / NVIDIA GeForce 9400M + 9600M GT 512MB
iPhone 3G 16Gb Black

http://www.rockkarusellen.se

Profile
 
 
Posted: 03 August 2009 07:10 PM   [ Ignore ]   [ # 2 ]  
Sr. Research Associate
RankRankRankRankRank
Total Posts:  2653
Joined  06-10-2007

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.

 Signature 

URI Language Identifier | Modular Extensions - HMVC | Modular Separation - PHP5 | Widget plugin | Access Control library

Profile
 
 
Posted: 19 August 2009 06:06 AM   [ Ignore ]   [ # 3 ]  
Sr. Research Associate
RankRankRankRankRank
Total Posts:  2653
Joined  06-10-2007

Modular Separation - PHP5 version 1.01 is attached to this post. As usual any feedback is appreciated.

EDIT:
deprecated file removed

 Signature 

URI Language Identifier | Modular Extensions - HMVC | Modular Separation - PHP5 | Widget plugin | Access Control library

Profile
 
 
Posted: 26 August 2009 03:04 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  2
Joined  08-26-2009

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..

Profile
 
 
Posted: 29 August 2009 07:11 PM   [ Ignore ]   [ # 5 ]  
Sr. Research Associate
RankRankRankRankRank
Total Posts:  2653
Joined  06-10-2007

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

 Signature 

URI Language Identifier | Modular Extensions - HMVC | Modular Separation - PHP5 | Widget plugin | Access Control library

Profile
 
 
Posted: 30 August 2009 07:41 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  317
Joined  08-19-2008

wiredesignz: this sounds very cool, can’t wait to test it out.  Thanks!

Profile
 
 
Posted: 31 August 2009 01:57 PM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  2
Joined  08-26-2009

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:

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:

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?

Profile
 
 
Posted: 24 September 2009 11:23 PM   [ Ignore ]   [ # 8 ]  
Sr. Research Associate
RankRankRankRankRank
Total Posts:  2653
Joined  06-10-2007

Modular Separation - PHP5 version 1.03 is attached to this post.

EDIT:
deprecated file removed

 Signature 

URI Language Identifier | Modular Extensions - HMVC | Modular Separation - PHP5 | Widget plugin | Access Control library

Profile
 
 
Posted: 13 October 2009 07:35 AM   [ Ignore ]   [ # 9 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2656
Joined  06-11-2007

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.

 Signature 

Blog | Twitter | GitHub | BitBucket
————————-
Upgrading to CodeIgniter 2.0
————————
PyroCMS - open source modular CMS built with CodeIgniter
MojoAddons.com - get add-ons for EllisLab’s funky new little CMS.

Profile
 
 
Posted: 13 October 2009 07:39 AM   [ Ignore ]   [ # 10 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2656
Joined  06-11-2007
Phil Sturgeon - 13 October 2009 07:35 AM

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

/dumbass

Sorry I spotted the language() and config() methods now meaning while it does support modular config and language, it does not do it the normal CodeIgniter way. I thought that was the main appeal of this library?

Sadly that is the reason Matchbox has to extend so many other libraries as it tries to get ALL CodeIgniter calls to work in the same way.

I’m not being a Matchbox fanboy here, I am genuinely concidering converting as right now I feel the code is cleaner. That said, I have not seen the new Matchbox yet. grin

 Signature 

Blog | Twitter | GitHub | BitBucket
————————-
Upgrading to CodeIgniter 2.0
————————
PyroCMS - open source modular CMS built with CodeIgniter
MojoAddons.com - get add-ons for EllisLab’s funky new little CMS.

Profile
 
 
   
1 of 24
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 149013 Total Logged-in Users: 35
Total Topics: 103295 Total Anonymous Users: 3
Total Replies: 516927 Total Guests: 324
Total Posts: 620222    
Members ( View Memberlist )