mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
29 lines
998 B
PHP
29 lines
998 B
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
// +----------------------------------------------------------------------
|
|
// | Author: liu21st <liu21st@gmail.com>
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace think\route\dispatch;
|
|
|
|
use think\Container;
|
|
use think\route\Dispatch;
|
|
|
|
class View extends Dispatch
|
|
{
|
|
public function run()
|
|
{
|
|
// 渲染模板输出
|
|
$vars = array_merge($this->app['request']->param(), $this->param);
|
|
|
|
return Container::get('view')
|
|
->init(Container::get('config')->pull('template'))
|
|
->fetch($this->dispatch, $vars);
|
|
}
|
|
}
|