/** * 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(); } }
/** * Displays the given block * * @param \YapepBase\View\BlockAbstract $block The block. * * @return void */ public function renderBlock(\YapepBase\View\BlockAbstract $block) { parent::renderBlock($block); }