25 if (is_string($templateDir)) $this->_templateDir = array($templateDir);
26 else $this->_templateDir = $templateDir;
36 function fetch($name, &$source, &$mtime) {
38 $mtime = filemtime($filename);
39 if ($mtime ===
false)
return false;
41 $source = file_get_contents($filename);
42 return ($source !==
false);
61 foreach ($this->_templateDir as $path) {
62 $filePath = $path . DIRECTORY_SEPARATOR . $template;
63 if (file_exists($filePath))
break;