/** * Load the template file $filename * * If path is relative (not starting with a "/"), the base path is prefixed * * @param string $filename * @param string $module * @return t41\View\TemplateComponent $this instance */ public function load($filename, $module = null) { $file = View::getAdapter()->loadTemplate($filename, $module); if (($this->_template = file_get_contents($file)) === false) { throw new Exception(array("ERROR_LOADING_FILE", $filename)); } return $this; }