2020-05-29 14:03:53 +08:00
|
|
|
<?php
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | ShopXO 国内领先企业级B2C免费开源电商系统
|
|
|
|
|
// +----------------------------------------------------------------------
|
2021-03-16 10:34:52 +08:00
|
|
|
// | Copyright (c) 2011~2099 http://shopxo.net All rights reserved.
|
2020-05-29 14:03:53 +08:00
|
|
|
// +----------------------------------------------------------------------
|
2021-03-16 10:34:52 +08:00
|
|
|
// | Licensed ( https://opensource.org/licenses/mit-license.php )
|
2020-05-29 14:03:53 +08:00
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Author: Devil
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
namespace app\module;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 视图模块引入
|
|
|
|
|
* @author Devil
|
|
|
|
|
* @blog http://gong.gg/
|
|
|
|
|
* @version 1.0.0
|
|
|
|
|
* @date 2020-05-25
|
|
|
|
|
* @desc description
|
|
|
|
|
*/
|
2021-07-18 23:42:10 +08:00
|
|
|
class ViewIncludeModule
|
2020-05-29 14:03:53 +08:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* 运行入口
|
|
|
|
|
* @author Devil
|
|
|
|
|
* @blog http://gong.gg/
|
|
|
|
|
* @version 1.0.0
|
|
|
|
|
* @date 2020-05-25
|
|
|
|
|
* @desc description
|
|
|
|
|
* @param [string] $template [模板地址]
|
2020-05-31 22:06:40 +08:00
|
|
|
* @param [mixed] $data [请求数据]
|
2020-06-14 16:04:37 +08:00
|
|
|
* @param [mixed] $params [额外参数]
|
2020-05-29 14:03:53 +08:00
|
|
|
* @return [string] [模板内容]
|
|
|
|
|
*/
|
2020-06-14 16:04:37 +08:00
|
|
|
public function Run($template, $data = [], $params = [])
|
2020-05-29 14:03:53 +08:00
|
|
|
{
|
2021-07-18 23:42:10 +08:00
|
|
|
MyViewAssign('module_data', $data);
|
|
|
|
|
MyViewAssign('module_params', $params);
|
|
|
|
|
return MyView($template);
|
2020-05-29 14:03:53 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|