阅读(3436) (0)

公共控制器

2016-10-19 17:13:51 更新

使用公共控制器(模块控制器)

Idea框架中并没有定义控制器基类,所以

一般项目中,我们都可能会使用公共控制器,在Idea中,我们默认使用公共控制器,在其中等模板引擎的配置操作。
其它控制器必须继承于公共控制器

<?php
class User extends Common{
}

根据实际需求或继承于基类控制器:

<?php
class UserController extends Controller{
}