插件的一些调整

This commit is contained in:
2017-06-21 16:41:12 +08:00
parent 4c07da02b5
commit 48fb02fb3d
9 changed files with 72 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ class Base extends \think\Controller {
$mc = ucfirst(parse_name($mc, 1));
$op = parse_name($op, 1);
}
if (!empty($mc) && !empty($op) && !empty($ac)) {
$ops = ucwords($op);
$class = "\\addons\\{$mc}\\controller\\{$ops}";
@@ -137,6 +137,17 @@ class Base extends \think\Controller {
}
}
/**
* @title 后台设置title
* @description 设置后台页面的title
* @Author molong
* @DateTime 2017-06-21
* @param string $title 标题名称
*/
protected function setMeta($title = '') {
$this->assign('meta_title', $title);
}
//request信息
protected function requestInfo() {
$this->param = $this->request->param();