关于thinkphp的一些系统常量以及变量
1、获取当前模块名称
$this->request->module();
同样的,获取当前控制器名 $this->request->controller();
获取当前方法名 $this->request->action();
本文介绍了ThinkPHP框架中用于获取当前模块名称、控制器名称及方法名称的系统变量使用方法。通过实例展示了如何利用$this->request->module()、$this->request->controller()和$this->request->action()来获取这些基本信息。
1、获取当前模块名称
$this->request->module();
同样的,获取当前控制器名 $this->request->controller();
获取当前方法名 $this->request->action();

被折叠的 条评论
为什么被折叠?
