CodeIgniter Forums
Matchbox RC2 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Matchbox RC2 (/showthread.php?tid=4444)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41


Matchbox RC2 - El Forum - 05-29-2008

[eluser]zdknudsen[/eluser]
It cant be called through any url, if that's what you're asking. Smile However, you can still load the codeigniter-resources through $this->load->module_library(), etc.


Matchbox RC2 - El Forum - 05-29-2008

[eluser]louis w[/eluser]
I noticed that if i have a _remap method not all uri params are passed to it.

Code:
function _remap($one=null, $two=null) {
            
        echo '<br/>One: '. $one;
        echo '<br/>Two: '. $two;
        
    }

Going to /module_name/one/two/ just echo's $one. $two is not there.

Is this intended?


Matchbox RC2 - El Forum - 05-29-2008

[eluser]zdknudsen[/eluser]
Strange, I'll have a look at that.


Matchbox RC2 - El Forum - 05-29-2008

[eluser]louis w[/eluser]
When you are inside of a view loaded with $this->load->module_view, does $this no longer represent your CI controller? Trying to access a variable set in the controller.


Matchbox RC2 - El Forum - 05-29-2008

[eluser]zdknudsen[/eluser]
I don't think you can even do that with a fresh CI install. You need to load your variables either through $this->load->vars($var_array) or $this->load->view('view', $var_array).


Matchbox RC2 - El Forum - 05-30-2008

[eluser]Eliurkis[/eluser]
In my site http://www.mysite.com/ using Matchbox, when I put the htaccess:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|js|styles)
RewriteRule ^(.*)$ index.php?/$1 [L]

and I try to access the site I skipped several errors in the router.
One is this:

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: libraries/Router.php

Line Number: 275

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: libraries/Router.php

Line Number: 275
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: libraries/Router.php

Line Number: 286
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: libraries/Router.php

Line Number: 292
A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: libraries/Router.php

Line Number: 295
An Error Was Encountered

Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.

The problem seems to be the default controller.


Thank you in advance,


Matchbox RC2 - El Forum - 06-02-2008

[eluser]louis w[/eluser]
Is there anyway you can decrease the amount of logging that Matchbox does? The amount of logs it generates looking for files is huge and makes it hard to find that actual parts of the logs I want.

I do not want to lower the CI system log threshold, I use that religiously while developing an app.


Matchbox RC2 - El Forum - 06-02-2008

[eluser]zdknudsen[/eluser]
Well I guess the easiest way would be to simply alter (or remove) the log() calls in Matchbox.php.

On a side note, do you have any suggestions as to which amount data that should rather be logged?


Matchbox RC2 - El Forum - 06-03-2008

[eluser]louis w[/eluser]
It would be nice if the MB logs could be turned off all together. This would be the simplest approach.

If you wanted to get even fancier, just indicating the path for the found file (not indicating where it's checking) might be a nice middle ground.

Don't get me wrong, the verbose logging it does now is nice when you are trying to debug a problem. Just for everyday development it makes the logs harder to debug.


Matchbox RC2 - El Forum - 06-03-2008

[eluser]louis w[/eluser]
How come my logs all say "No valid caller". Doesn't it auto detect the calling module?