# 控制器名
$this->router->fetch_class();
# 方法名
$this->router->fetch_method();
如何在自定义公共方法内调用呢?
# 先在自定义方法中添加
$CI = &get_instance();
# 控制器名
$CI->router->fetch_class();
# 方法名
$CI->router->fetch_method();
# 控制器名
$this->router->fetch_class();
# 方法名
$this->router->fetch_method();
如何在自定义公共方法内调用呢?
# 先在自定义方法中添加
$CI = &get_instance();
# 控制器名
$CI->router->fetch_class();
# 方法名
$CI->router->fetch_method();