public function renderTemplate($key, $additionalData = array())
    {
        if (!isset($this->templates[$key])) {
            return '';
        }
        
        $output = '';
        
        // Render the template files
        foreach ($this->templates[$key] as $priority => $templateFile) {
            $output .= $this->searchRendererAndRenderTemplate($templateFile, $additionalData);
        }
        
        return $output;
    }
public function renderTemplate($key, $additionalData = array())
    {
        if (!isset($this->templates[$key])) {
            return '';
        }
        
        $output = '';
        
        // Render the template files
        foreach ($this->templates[$key] as $priority => $templateFile) {
            $output .= $this->searchRendererAndRenderTemplate($templateFile, $additionalData);
        }
        
        return $output;
    }
public function renderTemplate ( $ key , $ additionalData = array ( ) ) { if ( ! isset ( $ this -> templates [ $ key ] ) ) { return '' ; } $ output = '' ; // Render the template files foreach ( $ this -> templates [ $ key ] as $ priority => $ templateFile ) { $ output .= $ this -> searchRendererAndRenderTemplate ( $ templateFile , $ additionalData ) ; } return $ output ; }
Renders all template files for the given template key.

@access public
@param string $key
@param array $additionalData
@return string
Renders all template files for the given template key .