Part of the EllisLab Network
   
3 of 33
3
Modular Separation - PHP5 (Modules)
Posted: 16 October 2009 10:16 AM   [ Ignore ]   [ # 21 ]  
Summer Student
Avatar
Total Posts:  20
Joined  03-25-2007

Did anyone tried modular separation with DMZ? It works perfect when DMZ model is in normal models folder but when is in the modules/MODULE/models cannot find it.

I’m not sore is this right topic for this question or it need changes from DataMapper side

 Signature 

V.

Profile
 
 
Posted: 18 October 2009 10:02 AM   [ Ignore ]   [ # 22 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3216
Joined  06-10-2007

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

Added feature: Multiple module base locations.

EDIT:
deprecated file removed

 Signature 

URI Language Identifier | Modular Extensions - HMVC | View Object | Widget plugin | Access Control library

Profile
 
 
Posted: 19 October 2009 03:01 PM   [ Ignore ]   [ # 23 ]  
Summer Student
Total Posts:  2
Joined  10-19-2009
wiredesignz - 04 August 2009 12:10 AM

Controllers in sub-directories are supported and resources may be cross loaded from other modules.

How do you go about cross loading resources from other modules? How can you specify which module to load a model from?

Profile
 
 
Posted: 19 October 2009 03:29 PM   [ Ignore ]   [ # 24 ]  
Summer Student
Total Posts:  2
Joined  10-19-2009

errr my bad, I had some naming issues going on. It works as you would think $this->load->model(modulename/model);

Nice work on this project, so far it is running very smoothly

Profile
 
 
Posted: 19 October 2009 08:48 PM   [ Ignore ]   [ # 25 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  467
Joined  01-17-2008

i love this. so much better than Matchbox… but it would be nice if i went to the admin module via /admin it would auto load the controller that is set in the routes folder as home

/admin/welcome

if it already does this im retarded and cant figure it out haha

 Signature 

aka trs21219
CodeSanity | Github | LinkedIn | Facebook | Twitter | Last.fm

Profile
 
 
Posted: 19 October 2009 09:42 PM   [ Ignore ]   [ # 26 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3216
Joined  06-10-2007

It does.

Set a route in your admin module config/routes.php file as

$route['admin''welcome'
 Signature 

URI Language Identifier | Modular Extensions - HMVC | View Object | Widget plugin | Access Control library

Profile
 
 
Posted: 19 October 2009 09:46 PM   [ Ignore ]   [ # 27 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  467
Joined  01-17-2008

oh ok that makes sense… thanks!

 Signature 

aka trs21219
CodeSanity | Github | LinkedIn | Facebook | Twitter | Last.fm

Profile
 
 
Posted: 19 October 2009 11:02 PM   [ Ignore ]   [ # 28 ]  
Grad Student
Avatar
Rank
Total Posts:  39
Joined  09-17-2004

Hi wiredesignz, any plans to backport the new features back to ME-HMVC?

 Signature 

Fred Wu
Founder of Wuit.com | Web Developer at Envato
My blog: fredwu.me | Follow me @fredwu

Profile
 
 
Posted: 19 October 2009 11:31 PM   [ Ignore ]   [ # 29 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3216
Joined  06-10-2007

Hey Fred,

Yes Modular Extensions PHP5 version 5.2.26 will have the same features. In fact the two projects share the same codebase.

 Signature 

URI Language Identifier | Modular Extensions - HMVC | View Object | Widget plugin | Access Control library

Profile
 
 
Posted: 19 October 2009 11:42 PM   [ Ignore ]   [ # 30 ]  
Grad Student
Avatar
Rank
Total Posts:  39
Joined  09-17-2004

That’s great! Thanks wiredesignz. smile

 Signature 

Fred Wu
Founder of Wuit.com | Web Developer at Envato
My blog: fredwu.me | Follow me @fredwu

Profile
 
 
   
3 of 33
3