Exemple #1
0
 public function render($template = null)
 {
     if (null === $this->_forward) {
         if (null !== $template) {
             $this->setTemplate($template);
         }
         ob_start();
         include 'templates/' . $this->_config->template . '/' . $this->getTemplate();
         $content = ob_get_clean();
         foreach ($this->_followUp as $comp) {
             $content .= $comp->render();
         }
     } else {
         $content = $this->_forward->render();
     }
     return $content;
 }
Exemple #2
0
 public static function add(\Pste\View $view, $params = array())
 {
     return $view->render();
 }