/** * Renders the template and returns the content. * * @access public * @param string $key * @param array $additionalData * @return string */ public function renderTemplate($key, $additionalData = array()) { return $this->templatesManager->renderTemplate($key, $additionalData); }
/** * Renders the given abstract container element and returns the html code * for the given container. * * @access public * @param \Zepi\Web\UserInterface\Layout\AbstractContainer $container * @return string */ public function render(AbstractContainer $container) { $template = $container->getTemplateKey(); return $this->templatesManager->renderTemplate($template, array('layoutRenderer' => $this, 'container' => $container)); }