protected function _Load($name) { $tpl_path = $this->_TemplatePath($name); $data = @file_get_contents($tpl_path); if ($data === FALSE) throw new TemplateLoaderException('Could not load template ' . $name); $template = Template::NewWithData($name, $data); if ($this->cache_backend) { $this->cache_backend->StoreCompiledTemplate( $name, filemtime($tpl_path), $template->template()); } return $template; }