/** Configure the filename and the data for this template. @param $sTemplate The template name. @param $aData Data to be used in the template. */ public function __construct($sTemplate, array $aData = array()) { $this->sFilename = TPL_PATH . $sTemplate . TPL_EXT; file_exists($this->sFilename) or burn('FileNotFoundException', sprintf(_WT('The file "%s" does not exist.'), $this->sFilename)); parent::__construct($aData); $this->setMIMEType('text/html'); }