예제 #1
0
 /**
  * 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);
 }
예제 #2
0
파일: Layout.php 프로젝트: zepi/turbo-base
 /**
  * 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));
 }