Part of the EllisLab Network
   
3 of 35
3
Matchbox 0.9.4
Posted: 29 November 2007 04:28 PM   [ Ignore ]   [ # 21 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  489
Joined  06-16-2006

So this is a native CI bug?

Will fix it anyway, but I’ll have a look at it myself first. smile

 Signature 

Best regards, Zacharias.
Matchbox - Modular Separation | Wick - Controller Loader

Profile
 
 
Posted: 30 November 2007 02:22 AM   [ Ignore ]   [ # 22 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  660
Joined  06-07-2007

Hey, I’m seriuosly considering changing JTaby from an app to a matchbox module. Just for reassurance purposes: I can provide a download, which people can grab and just drop in their CI installation?

 Signature 

CodeExtinguisher
Download: codex2_rc14.2.zip - 219 KiloBytes of Gloriousness!
Demo: Public preview - login with preview:preview
Temporary Docs: PBWiki

Profile
 
 
Posted: 30 November 2007 03:31 AM   [ Ignore ]   [ # 23 ]  
Summer Student
Avatar
Total Posts:  16
Joined  04-06-2006
Zacharias Knudsen - 29 November 2007 04:28 PM

So this is a native CI bug?

Will fix it anyway, but I’ll have a look at it myself first. smile

Yes it is smile But for some wierd reason there has not been released an update version (wierd) thats why I recommend implementing it (for the moment at least) inside matchbox and overriding CI core function. smile

Profile
 
 
Posted: 30 November 2007 05:36 AM   [ Ignore ]   [ # 24 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  489
Joined  06-16-2006
Zaatar - 30 November 2007 02:22 AM

Hey, I’m seriuosly considering changing JTaby from an app to a matchbox module. Just for reassurance purposes: I can provide a download, which people can grab and just drop in their CI installation?

Yes, that’s the idea behind Matchbox grin I’ve made a great effort to make the transition from app to module as easy as possible. In most cases it would be as easy as to move the files from your resource folders into the module folder. Please contact me if you have any questions or encounter problems.

 Signature 

Best regards, Zacharias.
Matchbox - Modular Separation | Wick - Controller Loader

Profile
 
 
Posted: 30 November 2007 04:40 PM   [ Ignore ]   [ # 25 ]  
Summer Student
Total Posts:  6
Joined  11-29-2007

Great stuff Zacharias!  As I’m looking to find a new framework the ‘modules’ concept is one of the ‘must have’ items on my list.  smile One step closer to CI.

Profile
 
 
Posted: 01 December 2007 09:33 AM   [ Ignore ]   [ # 26 ]  
Grad Student
Rank
Total Posts:  86
Joined  08-23-2007

gerben: Guess what? I got it working smile I’ve made a config file containing an array of directories relative to your application folder in which codeigniter should look for modules. It’ll be included in the next release (it’ll require some more tweaking and testing).

Wow, this is just marvelous! Wonderful, I’ll update my app, and check it out! Thanx so much, this will make it even more flexible!

I have still have a question, though: I use the view library (http://codeigniter.com/forums/viewthread/49910/) for calling views, and when Matchbox was called Modular Separation, the two went together very well. I could just call the views like:

$this->view->load('my_view');

And Matchbox would find it in the module-folder.

But since I updated from “modular separation” to Matchbox, Matchbox can’t find my views anymore. I solved it by going:

$this->view->load('../modules/my_module/views/my_view');

But this is not a really beautiful approach. Is there a way to keep using the two together?

Anyway, you’re doing something really exciting here, keep up the good work!

Profile
 
 
Posted: 01 December 2007 09:36 AM   [ Ignore ]   [ # 27 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  489
Joined  06-16-2006

Hm… Odd. Does it work when not using the view library?

 Signature 

Best regards, Zacharias.
Matchbox - Modular Separation | Wick - Controller Loader

Profile
 
 
Posted: 01 December 2007 09:52 AM   [ Ignore ]   [ # 28 ]  
Grad Student
Rank
Total Posts:  86
Joined  08-23-2007

You mean when I change

$this->view->load('settings');

to:

$this->load->view('settings');

?

Then it works fine of course wink But this way I won’t be able to load view parts into the main view, like:

$this->view->part('my_sidebar');

And I’ll have to change the way variables are passed to the view in my modules. The strange thing is that they both went together well before.

Profile
 
 
Posted: 01 December 2007 10:09 AM   [ Ignore ]   [ # 29 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  489
Joined  06-16-2006

That’s wierd.. :S $this->view->load(’’) is basicly an alias for $this->load->view(), just with some added functionality before the call. So I don’t understand why one of them works while the other doesn’t. Did this happen in 0.9 also or only in 0.9.1?

 Signature 

Best regards, Zacharias.
Matchbox - Modular Separation | Wick - Controller Loader

Profile
 
 
Posted: 01 December 2007 10:18 AM   [ Ignore ]   [ # 30 ]  
Grad Student
Rank
Total Posts:  86
Joined  08-23-2007

It happened in 0.9. I’m trying out 0.9.1 right now. Let you know if that fixes it.

That’s wierd.. :S $this->view->load(’’) is basicly an alias for $this->load->view(), just with some added functionality before the call.

If that is so, it’s really strange.

Profile
 
 
   
3 of 35
3
 
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 719, on June 06, 2008 10:16 AM
Total Registered Members: 61065 Total Logged-in Users: 13
Total Topics: 73886 Total Anonymous Users: 1
Total Replies: 398529 Total Guests: 331
Total Posts: 472415    
Members ( View Memberlist )
Active Members:    bscottCraig RodwayCrucialgazzaGDmacLuci3nmwmerzoutrageSarah PearsonSumontgo_detomcode