Codeigniter get controller,Action name in helper

Codeigniter get controller,Action name in helper

$ci =& get_instance(); // instance of the CI super variable
$ci->router->fetch_class(); // for controller name
$ci->router->fetch_method(); // for method name

Share This Blog

Comment

Do you want to get our quality service for your business?