Tutorialsplane

Codeigniter get current controller

Codeigniter get current controller

You can get Current controller in codeigniter as below :

Codeigniter Current Url

$this->router->fetch_class(); // will return currunt controller name
$this->router->fetch_method();// will return currunt method name