LSS/Tpl.php
protected function getTplFile($file,$init=false,$try_default=true){
		//figure out which file we want to find
		if($init)
			$file_ext = '.php';
		else
			$file_ext = $this->tpl_file_ext;
		//check for the override first
		$tpl_file = $this->path.'/'.$file.$file_ext;
		if(file_exists($tpl_file))
			return $tpl_file;
		if(!$try_default)
			throw new Exception('Template file doesnt exist: '.$tpl_file);
		//check the default path
		$tpl_file = dirname($this->path).'/default/'.$file.$file_ext;
		if(file_exists($tpl_file))
			return $tpl_file;
		throw new Exception('Template file doesnt exist: '.$tpl_file);
		return false;
	}
protected function getTplFile($file,$init=false,$try_default=true){
		//figure out which file we want to find
		if($init)
			$file_ext = '.php';
		else
			$file_ext = $this->tpl_file_ext;
		//check for the override first
		$tpl_file = $this->path.'/'.$file.$file_ext;
		if(file_exists($tpl_file))
			return $tpl_file;
		if(!$try_default)
			throw new Exception('Template file doesnt exist: '.$tpl_file);
		//check the default path
		$tpl_file = dirname($this->path).'/default/'.$file.$file_ext;
		if(file_exists($tpl_file))
			return $tpl_file;
		throw new Exception('Template file doesnt exist: '.$tpl_file);
		return false;
	}
--------------------------------------------------------