mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-08 06:35:37 +08:00
安装程序
This commit is contained in:
49
application/install/controller/Common.php
Normal file
49
application/install/controller/Common.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
namespace app\install\controller;
|
||||
|
||||
use think\Controller;
|
||||
|
||||
/**
|
||||
* 安装程序-公共
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2018-11-30
|
||||
* @desc description
|
||||
*/
|
||||
class Common extends Controller
|
||||
{
|
||||
/**
|
||||
* 构造方法
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2018-11-30
|
||||
* @desc description
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// url模式
|
||||
\think\facade\Url::root(__MY_ROOT__.'index.php?s=');
|
||||
|
||||
// 当前方法
|
||||
$this->assign('action', strtolower(request()->action()));
|
||||
}
|
||||
|
||||
/**
|
||||
* [_empty 空方法操作]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2017-02-25T15:47:50+0800
|
||||
* @param [string] $name [方法名称]
|
||||
*/
|
||||
public function _empty($name)
|
||||
{
|
||||
$this->assign('msg', $name.' 非法访问');
|
||||
return $this->fetch('public/error');
|
||||
}
|
||||
|
||||
}?>
|
||||
Reference in New Issue
Block a user