public function setTemplateFile(string $sRelativePathToFile) : void
  {
    if(!is_file($sRelativePathToFile)) {
      throw new \Exception('Template file not found.');
    }
    
    $sFileContent = file_get_contents($sRelativePathToFile);
    $this->setTemplate($sFileContent);
  }
public function setTemplateFile(string $sRelativePathToFile) : void
  {
    if(!is_file($sRelativePathToFile)) {
      throw new \Exception('Template file not found.');
    }
    
    $sFileContent = file_get_contents($sRelativePathToFile);
    $this->setTemplate($sFileContent);
  }
public function setTemplateFile ( string $ sRelativePathToFile ) : void { if ( ! is_file ( $ sRelativePathToFile ) ) { throw new \ Exception ( 'Template file not found.' ) ; } $ sFileContent = file_get_contents ( $ sRelativePathToFile ) ; $ this -> setTemplate ( $ sFileContent ) ; }
This method is used to set the template from a relative
path.

@param string $sRelativePathToFile  the relative path to the template
@throws Exception                   if the file is not found
@return void
This method is used to set the template from a relative path .