thinkphp5.x获取当前模块名称,当前控制器名称,当前类方法名称
//助手函数request(),实例化Request对象;
//当前模块名称
$moduleName=request()->module();
//当前控制名称
$controllerName=request()->controller();
//当前类方法名称
$actionName=request()->action();
thinkphp5.x当前模型名称:
//当前模型名称
$modelName=$this->name;