laravel 与 tp5 获取控制器 方法名
laravel 5
$actions=explode('\\', \Route::current()->getActionName());
$modelName=$actions[count($actions)-2]=='Controllers'?null:$actions[count($actions)-2];
$func=explode('@', $actions[count($actions)-1]);
$controllerName=$func[0];
$actionName=$func[1];
ThinkPHP 5
$request=think\Request::instance();
$modelName=$reqeust->model;
$controllerName=$request->controller;
$actionName=$request->action;