public function display($tpl, $outputtype = '', $trusted = true)
    {
        $previousTpl = $this->_templateName;
        $this->_templateName = $tpl;
        $this->recursiveTpl[] = $tpl;
        $md = $this->getTemplate($tpl, $outputtype, $trusted);

        $fct = 'template_'.$md;
        $fct($this);
        array_pop($this->recursiveTpl);
        $this->_templateName = $previousTpl;
    }
public function display($tpl, $outputtype = '', $trusted = true)
    {
        $previousTpl = $this->_templateName;
        $this->_templateName = $tpl;
        $this->recursiveTpl[] = $tpl;
        $md = $this->getTemplate($tpl, $outputtype, $trusted);

        $fct = 'template_'.$md;
        $fct($this);
        array_pop($this->recursiveTpl);
        $this->_templateName = $previousTpl;
    }
public function display ( $ tpl , $ outputtype = '' , $ trusted = true ) { $ previousTpl = $ this -> _templateName ; $ this -> _templateName = $ tpl ; $ this -> recursiveTpl [ ] = $ tpl ; $ md = $ this -> getTemplate ( $ tpl , $ outputtype , $ trusted ) ; $ fct = 'template_' . $ md ; $ fct ( $ this ) ; array_pop ( $ this -> recursiveTpl ) ; $ this -> _templateName = $ previousTpl ; }
display the generated content from the given template.

@param string $tpl        template selector
@param string $outputtype the type of output (html, text etc..)
@param bool   $trusted    says if the template file is trusted or not
display the generated content from the given template .