mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
类不存在的异常不再手动捕获 系统自动捕获
This commit is contained in:
@@ -17,8 +17,12 @@ class Think {
|
||||
$this->template = new Template($config);
|
||||
}
|
||||
|
||||
public function fetch($template,$data=[]){
|
||||
$this->template->display($template,$data);
|
||||
public function fetch($template,$data=[],$cacheId=''){
|
||||
if(is_file($template)) {
|
||||
$this->template->display($template,$data,$cacheId);
|
||||
}else{
|
||||
$this->template->fetch($template,$data);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user