public function compute(){
		if(file_exists($this->getTemplatePath($this->tpl['layout']['path']))){
			include $this->getTemplatePath($this->tpl['layout']['path']);
		}else
			echo "Layout does not exists ".$this->tpl['layout']['path'];
	}
public function compute(){
		if(file_exists($this->getTemplatePath($this->tpl['layout']['path']))){
			include $this->getTemplatePath($this->tpl['layout']['path']);
		}else
			echo "Layout does not exists ".$this->tpl['layout']['path'];
	}
public function compute ( ) { if ( file_exists ( $ this -> getTemplatePath ( $ this -> tpl [ 'layout' ] [ 'path' ] ) ) ) { include $ this -> getTemplatePath ( $ this -> tpl [ 'layout' ] [ 'path' ] ) ; } else echo "Layout does not exists " . $ this -> tpl [ 'layout' ] [ 'path' ] ; }
render the whole layout and display it
render the whole layout and display it