Part of the EllisLab Network
   
3 of 41
3
Matchbox RC2
Posted: 29 November 2007 05:28 PM   [ Ignore ]   [ # 21 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
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 03:22 AM   [ Ignore ]   [ # 22 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  709
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 

jtaby.com

Profile
 
 
Posted: 30 November 2007 04:31 AM   [ Ignore ]   [ # 23 ]  
Summer Student
Avatar
Total Posts:  10
Joined  04-06-2006
Zacharias Knudsen - 29 November 2007 10: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 06:36 AM   [ Ignore ]   [ # 24 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
Joined  06-16-2006
Zaatar - 30 November 2007 08: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 05:40 PM   [ Ignore ]   [ # 25 ]  
Summer Student
Total Posts:  7
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 10:33 AM   [ Ignore ]   [ # 26 ]  
Grad Student
Rank
Total Posts:  85
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 10:36 AM   [ Ignore ]   [ # 27 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
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 10:52 AM   [ Ignore ]   [ # 28 ]  
Grad Student
Rank
Total Posts:  85
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 11:09 AM   [ Ignore ]   [ # 29 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  369
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 11:18 AM   [ Ignore ]   [ # 30 ]  
Grad Student
Rank
Total Posts:  85
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 41
3