Welcome Guest, Not a member yet? Register   Sign In
default function
#1

[eluser]otn3m3m[/eluser]
I need to call a function in a custom library class and pass a user id and url everytime any controller function in any controller is invoked anywhere on my site. What is the best way to do this?
#2

[eluser]Twisted1919[/eluser]
Maybe you can do it with the _remap function:
Code:
public function _remap($method)
{
   if(method_exists($this,$method))
   {
     $uid=$this->some_lib->get_uid();
     $url=current_url();//url_helper
     $this->other_lib->save_those($uid,$url);
   }

}
#3

[eluser]otn3m3m[/eluser]
that would work..thanks




Theme © iAndrew 2016 - Forum software by © MyBB