public function renderLayout() { if ($this->_layout) { $layoutPath = Path::join(ROOT_PATH, ApplicationPaths::getLayoutPath(), $this->_layout . '.phtml'); /** @noinspection PhpIncludeInspection */ require_once $layoutPath; } }
public function display() { $renderedView = $this->view->getRenderedView(); if ($renderedView) { $this->layout->setRenderContent($renderedView); } $this->layout->renderLayout(); $this->_removeMessages(); }