public function fetch($templateFile='',$charset='',$contentType='',$display=false)
{
//die('errorcode');
echo 'fetch';
G('_viewStartTime');
// 使用null参数作为模版名直接返回不做任何输出
if(null===$templateFile) return;
// 网页字符编码
if(empty($charset)) $charset = C('DEFAULT_CHARSET');
if(empty($contentType)) $contentType = C('TMPL_CONTENT_TYPE');
header("Content-Type:".$contentType."; charset=".$charset);
header("Cache-control: private"); //支持页面回跳
header("X-Powered-By:ThinkPHP".THINK_VERSION);
//页面缓存
ob_start();
ob_implicit_flush(0);
// 自动定位模板文件
echo $templateFile;//edit by test
//die();
echo file_exists_case($templateFile);
if(!file_exists_case($templateF