/** * Set a new template file * */ public function setFile($file) { $fullpath = OOTemplate_Setting::generate_path($file); if (!file_exists($fullpath)) { throw new OOTemplate_Exception("template {$file}, not found in {$fullpath}\n"); } $this->_file = $file; $this->setContents(file_get_contents($fullpath)); return $this; }