Part of the EllisLab Network
   
1 of 12
1
Wick 0.91 - Discontinued
Posted: 22 May 2008 07:37 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
Joined  06-16-2006

Discontinued
My Wick project is discontinued. Wick is a simple library that provides a method for loading and rendering one controller from within another controller. If anyone wishes to, they’re welcome to grab my code and continue work on it. But I wont be supporting or updating this project any longer. Best regards.

The library can be downloaded here.

 Signature 

Best regards. Zacharias.
Matchbox (Modular Separation) | Wick (Controller Loader)

Profile
 
 
Posted: 22 May 2008 08:07 PM   [ Ignore ]   [ # 1 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3216
Joined  06-10-2007

Interesting use of EVAL Zach.

Is this PHP4 compatible?

 Signature 

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

Profile
 
 
Posted: 22 May 2008 08:11 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
Joined  06-16-2006

Yeah, it’s not the most elegant of hacks, but it works. smile

Regarding PHP4 support, I can’t say for sure, since I recently reinstalled XAMPP and took the lite version (which only comes with PHP5). I’m almost certain it is compatible, though.

 Signature 

Best regards. Zacharias.
Matchbox (Modular Separation) | Wick (Controller Loader)

Profile
 
 
Posted: 22 May 2008 08:21 PM   [ Ignore ]   [ # 3 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  3216
Joined  06-10-2007

The reason I ask is because in PHP4, the Controller extends CI_Loader (via CI_Base) and Wick also has a controller function which may clash with the main Controller constructor.

Hope this helps.

Just a note also that Modular Extensions 4.1 uses CI Controllers in modules, and it is possible to load or run one controller from another, and modules are accessible from the URL now.

 Signature 

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

Profile
 
 
Posted: 22 May 2008 08:23 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
Joined  06-16-2006

Neat, thanks for the heads-up. This will require a bit of testing then.

 Signature 

Best regards. Zacharias.
Matchbox (Modular Separation) | Wick (Controller Loader)

Profile
 
 
Posted: 23 May 2008 09:50 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
Joined  06-16-2006

Alright, I can confirm that it is, indeed, PHP4 compatible.

I am aware that Modular Extensions allows this functionality, but I needed a method for doing this without the use of modules, in which case ME might be overkill. smile

 Signature 

Best regards. Zacharias.
Matchbox (Modular Separation) | Wick (Controller Loader)

Profile
 
 
Posted: 23 May 2008 02:48 PM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1101
Joined  08-06-2006

wick = wicked cool code. keeping an eye on this thread (as i have been with ME thread which is now over 40 pages long!).

 Signature 

peeker email (imap/pop) | site_migrate | OOCalendar | PhotoBox2 | word_limiter

Profile
 
 
Posted: 23 May 2008 04:32 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
RankRankRankRankRank
Total Posts:  3103
Joined  01-07-2008

Although I’m usually in the pitchfork camp, I must say that is some very clever code.

 Signature 
Profile
MSG
 
 
Posted: 23 May 2008 05:52 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
RankRank
Total Posts:  228
Joined  10-17-2006

Nicely coded. Cool approach by extending the loader class and replace $this->load.

Profile
 
 
Posted: 24 May 2008 03:25 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
Joined  06-16-2006

Thanks. smile

I had been thinking a bit about the problems with multiple libraries extending the same library, and this is the cleanest approach I could come up with.

 Signature 

Best regards. Zacharias.
Matchbox (Modular Separation) | Wick (Controller Loader)

Profile
 
 
Posted: 25 May 2008 10:47 PM   [ Ignore ]   [ # 10 ]  
Grad Student
Rank
Total Posts:  85
Joined  08-23-2007

Hey Zacharias,

Wow, I like this idea a lot, especially the fact that it accepts segments as a parameter! This way it allows you to use the same controller standalone or as part of another page using the same set of segments, which really makes sense from a site-structuring point of view.

Will it be compatible with Matchbox at some point? That would be great!

Thanx!

Profile
 
 
   
1 of 12
1