mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进Cache类 及 驱动 改进Connection类及驱动
This commit is contained in:
@@ -13,7 +13,7 @@ namespace think\view\driver;
|
||||
use think\Exception;
|
||||
use think\Log;
|
||||
|
||||
class Php implements ViewInterface
|
||||
class Php
|
||||
{
|
||||
// 模板引擎参数
|
||||
protected $config = [
|
||||
|
||||
@@ -14,7 +14,7 @@ use think\Exception;
|
||||
use think\Log;
|
||||
use think\Template;
|
||||
|
||||
class Think implements ViewInterface
|
||||
class Think
|
||||
{
|
||||
// 模板引擎实例
|
||||
private $template = null;
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think\view\driver;
|
||||
|
||||
interface ViewInterface
|
||||
{
|
||||
/**
|
||||
* 渲染模板文件
|
||||
* @access public
|
||||
* @param string $template 模板文件
|
||||
* @param array $data 模板变量
|
||||
* @return void
|
||||
*/
|
||||
public function fetch($template, $data = []);
|
||||
|
||||
/**
|
||||
* 渲染模板内容
|
||||
* @access public
|
||||
* @param string $content 模板内容
|
||||
* @param array $data 模板变量
|
||||
* @return void
|
||||
*/
|
||||
public function display($content, $data = []);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user