src/UI/Template.php
public function setTemplate( $fileName )
	{
		if( empty( $fileName ) )
			return FALSE;
			
		if( !file_exists( $fileName ) )
			throw new Exception_Template( Exception_Template::FILE_NOT_FOUND, $fileName );

		$this->fileName	= $fileName;
		$this->template = file_get_contents( $fileName );
		return TRUE;
	}
public function setTemplate( $fileName )
	{
		if( empty( $fileName ) )
			return FALSE;
			
		if( !file_exists( $fileName ) )
			throw new Exception_Template( Exception_Template::FILE_NOT_FOUND, $fileName );

		$this->fileName	= $fileName;
		$this->template = file_get_contents( $fileName );
		return TRUE;
	}
public function setTemplate ( $ fileName ) { if ( empty ( $ fileName ) ) return FALSE ; if ( ! file_exists ( $ fileName ) ) throw new Exception_Template ( Exception_Template :: FILE_NOT_FOUND , $ fileName ) ; $ this -> fileName = $ fileName ; $ this -> template = file_get_contents ( $ fileName ) ; return TRUE ; }
Loads a new template file if it exists. Otherwise it will throw an Exception.
@param		string		$fileName 	File Name of Template
@return		boolean
Loads a new template file if it exists . Otherwise it will throw an Exception .