Html View

The function executes and displays a template script.

  • string $tpl - The name of the template file to parse; automatically searches through the template paths.
  • return mixed - A string if successful, otherwise an Error object.
public function display($tpl = null)
{
$result = $this->loadTemplate($tpl);

if ($result instanceof \Exception)
{
return $result;
}

echo $result;
}