original_string: 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
          );
      }
code: 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
          );
      }
code_tokens: 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 ) ; }
docstring: Searches a renderer for the given template file and renders the
  file.
  
  @access protected
  @param string $templateFile
  @param array $additionalData
  @return string
docstring_tokens: Searches a renderer for the given template file and renders the file .