protected function searchRendererAndRenderTemplate($templateFile, $additionalData = array())
    {
        // Get the file information for the template file
        $fileInfo = pathinfo($templateFile);
        $extension = $fileInfo['extension'];
        
        // If we haven't a renderer for this extension we return an
        // empty string to prevent everything from failing.
        if (!isset($this->renderer[$extension])) {
            return '';
        }
        
        // Take the renderer...
        $renderer = $this->renderer[$extension];
        
        // ...and render the template file.
        return $renderer->renderTemplateFile(
            $templateFile, 
            $this->framework, 
            $this->framework->getRequest(), 
            $this->framework->getResponse(),
            $additionalData
        );
    }
protected function searchRendererAndRenderTemplate($templateFile, $additionalData = array())
    {
        // Get the file information for the template file
        $fileInfo = pathinfo($templateFile);
        $extension = $fileInfo['extension'];
        
        // If we haven't a renderer for this extension we return an
        // empty string to prevent everything from failing.
        if (!isset($this->renderer[$extension])) {
            return '';
        }
        
        // Take the renderer...
        $renderer = $this->renderer[$extension];
        
        // ...and render the template file.
        return $renderer->renderTemplateFile(
            $templateFile, 
            $this->framework, 
            $this->framework->getRequest(), 
            $this->framework->getResponse(),
            $additionalData
        );
    }
protected function searchRendererAndRenderTemplate ( $ templateFile , $ additionalData = array ( ) ) { // Get the file information for the template file $ fileInfo = pathinfo ( $ templateFile ) ; $ extension = $ fileInfo [ 'extension' ] ; // If we haven't a renderer for this extension we return an // empty string to prevent everything from failing. if ( ! isset ( $ this -> renderer [ $ extension ] ) ) { return '' ; } // Take the renderer... $ renderer = $ this -> renderer [ $ extension ] ; // ...and render the template file. return $ renderer -> renderTemplateFile ( $ templateFile , $ this -> framework , $ this -> framework -> getRequest ( ) , $ this -> framework -> getResponse ( ) , $ additionalData ) ; }
Searches a renderer for the given template file and renders the
file.

@access protected
@param string $templateFile
@param array $additionalData
@return string
Searches a renderer for the given template file and renders the file .