示例#1
0
文件: TPL_CLASS.php 项目: ZIM555/LCMS
 private function load($NAMEn)
 {
     $this->AR['LOG']->LSET("TPLClass: load(" . $NAMEn . ")");
     $TPLPATHfile = $this->TPLPTH . $NAMEn;
     $RES = LoadTpl($TPLPATHfile);
     if (!RES) {
         // Error no tpl file
         $this->AR['LOG']->LSET("TPLClass: load: ERROR (No file)");
     }
     return $RES;
 }
示例#2
0
 public function TLOAD($TPL)
 {
     // Name of template load
     $TPLPATHfile = $this->TPLPTH . $this->TPLFNAME[$TPL];
     // Path + name of tplfile from config
     $RES = LoadTpl($TPLPATHfile);
     if (!$RES) {
         // Error no tpl file
         $this->AR['LOG']->WR("TPLClass: TLOAD: ERROR (No file: " . $this->TPLFNAME[$TPL] . ")");
         return false;
     }
     return $RES;
 }