ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### 使用公共控制器(模块控制器) >[info]Idea框架中并没有定义控制器基类,所以 一般项目中,我们都可能会使用公共控制器,在Idea中,我们默认使用公共控制器,在其中等模板引擎的配置操作。在Idea framework中没有内置控制器基类。 其它控制器必须继承于公共控制器 ~~~ <?php /** * 后台入口控制器 */ namespace app\admin\controller; //继承公共控制器类 class Index extends \app\admin\controller\Common { } ~~~