[eluser]cdmn[/eluser]
Hi.
ive did some research with hooks and hook points and of course ive some questions.
Maybe someone will be nice enough to answer them :-)
My hook does nothing special, just:
Code:
$CI =& get_instance();
var_dump($CI);
So.
Hook with
pre_system point:
Code:
Fatal error: Call to undefined function: get_instance() in ...
Hook with
pre_controller point:
var_dump returns NULL.
Other hook points returns an object, which you can work with.
So my question would be, what resourses i can use, at
pre_system and
pre_controller points? Of course ill need to load some libraries, should i use CI core functions like
load_class? Looking for some explanation and advice :-)