mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-02 11:59:16 +08:00
58 lines
1.7 KiB
PHP
58 lines
1.7 KiB
PHP
<?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\module;
|
|
|
|
use think\Controller;
|
|
|
|
/**
|
|
* 视图模块引入
|
|
* @author Devil
|
|
* @blog http://gong.gg/
|
|
* @version 1.0.0
|
|
* @date 2020-05-25
|
|
* @desc description
|
|
*/
|
|
class ViewIncludeModule extends Controller
|
|
{
|
|
/**
|
|
* 构造方法
|
|
* @author Devil
|
|
* @blog http://gong.gg/
|
|
* @version 1.0.0
|
|
* @date 2020-05-25
|
|
* @desc description
|
|
*/
|
|
public function __construct()
|
|
{
|
|
// 调用父类前置方法
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
* 运行入口
|
|
* @author Devil
|
|
* @blog http://gong.gg/
|
|
* @version 1.0.0
|
|
* @date 2020-05-25
|
|
* @desc description
|
|
* @param [string] $template [模板地址]
|
|
* @param [mixed] $data [请求数据]
|
|
* @param [mixed] $params [额外参数]
|
|
* @return [string] [模板内容]
|
|
*/
|
|
public function Run($template, $data = [], $params = [])
|
|
{
|
|
$this->assign('module_data', $data);
|
|
$this->assign('module_params', $params);
|
|
return $this->fetch($template);
|
|
}
|
|
}
|
|
?>
|