mirror of
https://e.coding.net/circlecloud/MinecraftAccount.git
synced 2024-11-17 00:58:55 +00:00
29 lines
1.0 KiB
PHP
29 lines
1.0 KiB
PHP
|
<?php
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||
|
// +----------------------------------------------------------------------
|
||
|
// | Author: luofei614<weibo.com/luofei614>
|
||
|
// +----------------------------------------------------------------------
|
||
|
namespace Think\Template\Driver;
|
||
|
/**
|
||
|
* MobileTemplate模板引擎驱动
|
||
|
*/
|
||
|
class Mobile {
|
||
|
/**
|
||
|
* 渲染模板输出
|
||
|
* @access public
|
||
|
* @param string $templateFile 模板文件名
|
||
|
* @param array $var 模板变量
|
||
|
* @return void
|
||
|
*/
|
||
|
public function fetch($templateFile,$var) {
|
||
|
$templateFile=substr($templateFile,strlen(THEME_PATH));
|
||
|
$var['_think_template_path']=$templateFile;
|
||
|
exit(json_encode($var));
|
||
|
}
|
||
|
}
|