Beispiel #1
0
 public function render($view)
 {
     if (file_exists($view)) {
         $view = $this->getRelativeTemplatePath($view);
     }
     if (!file_exists($view)) {
         $original = $view;
         $view = $this->getTemplatePath($view);
         if (!$view) {
             throw new ViewNotFoundException($original);
         }
     }
     /*$cache = $this->getCache($view);
     		if ($cache->isCached())
     		{
     			return $cache->getData();
     		}
     		*/
     $output = parent::render($view);
     $output = $this->applyLayoutModifications($view, $output);
     //$cache->setData('<div style="border: 2px solid red;">' . $output . '</div>');
     //$cache->save();
     //$this->cache = $cache->getParent();
     return $output;
 }
Beispiel #2
0
 public function render($view)
 {
     if (file_exists($view)) {
         $view = $this->getRelativeTemplatePath($view);
     }
     if (!file_exists($view)) {
         $original = $view;
         $view = $this->getTemplatePath($view);
         if (!$view) {
             throw new ViewNotFoundException($original);
         }
     }
     $output = parent::render($view);
     return $this->applyLayoutModifications($view, $output);
 }