[eluser]Dauntless[/eluser]
Hi,
Is there a way to get a reference to the active controller ?
I'm using a custom library and from within that library, I would like to execute a method on the active controller. I know this is really ugly (OO-wise), but it really is the best way at this time.
I'm thinking of something like
Code:
$this->CI =& get_instance();
$this->CI->activeController->myMethod();
Is this possible ?