$middleware
$middleware : array
控制器中间件
$view : \think\View
视图类实例
$request : \think\Request
Request实例
$app : \think\App
应用实例
__construct(\think\App $app = null)
构造方法
\think\App | $app |
index() : \think\Response
显示教师荣誉册列表
ajaxData() : \think\Response
显示教师荣誉册列表
create() : \think\Response
显示创建资源表单页.
save() : \think\Response
保存新建的资源
read(integer $id) : \think\Response
显示指定的资源
integer | $id |
edit(integer $id) : \think\Response
显示编辑资源表单页.
integer | $id |
update(integer $id) : \think\Response
保存更新的资源
integer | $id |
delete(integer $id) : \think\Response
删除指定资源
integer | $id |
validate(array $data, string|array $validate, array $message = array(), boolean $batch = false, mixed $callback = null) : array|string|true
验证数据
array | $data | 数据 |
string|array | $validate | 验证器名或者验证规则数组 |
array | $message | 提示信息 |
boolean | $batch | 是否批量验证 |
mixed | $callback | 回调方法(闭包) |