mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-05 05:19:21 +08:00
58 lines
1.6 KiB
PHP
Executable File
58 lines
1.6 KiB
PHP
Executable File
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | ShopXO 国内领先企业级B2C免费开源电商系统
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2011~2019 http://shopxo.net All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Devil
|
|
// +----------------------------------------------------------------------
|
|
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_PUBLIC__.'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/tips_error');
|
|
}
|
|
}
|
|
?>
|