控制参数
// 默认基类中为false,表示不启用,可额外使用auth和personal两个值
protected $dataLimit = 'auth';
// 数据关联字段,当前控制器对应的模型表中必须存在该字段
protected $dataLimitField = 'admin_id';
// 表示不启用,显示所有数据
$dataLimit = false;
// 表示显示当前自己和所有子级管理员的所有数据
$dataLimit = 'auth';
// 表示仅显示当前自己的数据
$dataLimit = 'personal';
一键压缩打包命令
一键压缩打包前后台的JS和CSS
php think min -m all -r all
一键压缩打包后台的JS和CSS
php think min -m backend -r all
一键压缩打包前台的JS和CSS
php think min -m frontend -r all
一键压缩打包前后台的JS
php think min -m all -r js
一键压缩打包前后台的CSS
php think min -m all -r css
一键压缩打包后台的JS
php think min -m backend -r js
一键压缩打包后台的CSS
php think min -m backend -r css
一键压缩打包前台的JS
php think min -m frontend -r js
一键压缩打包前台的CSS
php think min -m frontend -r css
使用uglify进行一键压缩打包后台的JS文件
php think min -m backend -r js -o uglify