EllisLab text mark
Advanced Search
     
Loading spark on 404 page throwing error
Posted: 25 June 2012 02:16 AM   [ Ignore ]
Avatar
Joined: 2012-03-16
7 posts

I’m running into a problem tonight that i just can’t figure out. I’m loading the spark for the Carabiner Asset Library

$this->load->spark('carabiner/1.5.4', array('library' => 'carabiner')); 

I’m running into an error/ no error loading the spark in these senarios:

default_controller/foo <- foo method does not exist, 404 loads fine
other_controller/bar <- bar is a method in other_controller, method load fine
other_controller/wakawaka -> wakawaka does not exist, Message: Undefined property: Error::$carabiner

$this->carabiner->config($carabiner_config); 

is the line php is complaining about

Carabiner is being loaded in a MY_controller where default_controller and other_controller both extend MY_controller

I commented out the config line above and got the same error on the next spark i had to load and call, Template.

Any idea what’s going on?

Edit: Oh I should have noted that this is happening when I have a controller/method in the 404_override setting in routes. leaving that empty and returning the vanilla 404 works fine.

 
Posted: 28 June 2012 09:29 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2012-03-16
7 posts

Crickets? Anyone?