protected function renderDefaultTemplate($template, $params=[]) {
		if(!file_exists($template)) {
			$template = $this->solveTemplatePath($orig = $template);
			if(!file_exists($template))
				throw new \Exception('The template file "'.$orig.'" could not be found.');
		}

		extract($params);

		ob_start();
		include($template);
		return ob_get_clean();
	}
protected function renderDefaultTemplate($template, $params=[]) {
		if(!file_exists($template)) {
			$template = $this->solveTemplatePath($orig = $template);
			if(!file_exists($template))
				throw new \Exception('The template file "'.$orig.'" could not be found.');
		}

		extract($params);

		ob_start();
		include($template);
		return ob_get_clean();
	}
protected function renderDefaultTemplate ( $ template , $ params = [ ] ) { if ( ! file_exists ( $ template ) ) { $ template = $ this -> solveTemplatePath ( $ orig = $ template ) ; if ( ! file_exists ( $ template ) ) throw new \ Exception ( 'The template file "' . $ orig . '" could not be found.' ) ; } extract ( $ params ) ; ob_start ( ) ; include ( $ template ) ; return ob_get_clean ( ) ; }
Render the default template file.
@param  string $template template file
@param  array  $params   parameters
@return string
Render the default template file .