Example #1
0
 /**
  * 检查文件是否存在
  * @param string $tpl 模板文件
  * @throws Exception
  */
 private function _checkFile($tpl)
 {
     $tpl = \H2O::getAlias($tpl);
     if (!file_exists($tpl)) {
         throw new \Exception($tpl . ':template is not found!');
     }
 }