public function getOutput($tpl = null)
	{
	    $output = $this->fetch($tpl);
        if ($this->isError($output)) {
            $text = $this->__config['error_text'];
            return $this->escape($text);
        } else {
            return $output;
        }
	}
public function getOutput($tpl = null)
	{
	    $output = $this->fetch($tpl);
        if ($this->isError($output)) {
            $text = $this->__config['error_text'];
            return $this->escape($text);
        } else {
            return $output;
        }
	}
public function getOutput ( $ tpl = null ) { $ output = $ this -> fetch ( $ tpl ) ; if ( $ this -> isError ( $ output ) ) { $ text = $ this -> __config [ 'error_text' ] ; return $ this -> escape ( $ text ) ; } else { return $ output ; } }
Returns output, including error_text if an error occurs.

@param $tpl The template to process; if null, uses the
default template set with setTemplate().

@return string The template output.
Returns output including error_text if an error occurs .