mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-03 05:41:38 +08:00
测试
This commit is contained in:
28
Think/View/Driver/Think.php
Normal file
28
Think/View/Driver/Think.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | TOPThink [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2011 http://topthink.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
// $Id$
|
||||
namespace Think\View\Driver;
|
||||
use Think\Template;
|
||||
class Think {
|
||||
private $template = null;
|
||||
public function __construct($config=array()){
|
||||
$tpl = new Template($config);
|
||||
$this->template = $tpl;
|
||||
//$tpl->tpl_path = MODULE_PATH.'view/';
|
||||
//$tpl->cache_path = MODULE_PATH.'cache/';
|
||||
}
|
||||
|
||||
public function fetch($template,$data=array()){
|
||||
$this->template->assign($data);
|
||||
$this->template->display($template);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user