Example #1
0
 /**
  * Renders the view and prints it.
  *
  * @return void
  */
 public function render()
 {
     if ($this->layout !== null) {
         ob_start();
         parent::render();
         $content = ob_get_clean();
         $this->layout->setInnerContent($content);
         $this->layout->render();
     } else {
         parent::render();
     }
 }
Example #2
0
 /**
  * Displays the given block
  *
  * @param \YapepBase\View\BlockAbstract $block   The block.
  *
  * @return void
  */
 public function renderBlock(\YapepBase\View\BlockAbstract $block)
 {
     parent::renderBlock($block);
 }