Welcome Guest, Not a member yet? Register   Sign In
how to get method name from controller ?

I'm trying a new version ;-)
But in old version i used the following code:
$this->_method = $this->uri->router->fetch_method();
        $this->_class = $this->uri->router->fetch_class();
        $this->_directory = $this->uri->router->fetch_directory();

in the new version this code doesn't work. How can i get class, method and directory name from controller in the new version?

the router is now no longer in the uri class
instead you need to do something like
$RTR =& load_class('Router');

Oh tnx. it help me.

Theme © iAndrew 2016 - Forum software by © MyBB