Ouzo\Layout::renderLayout PHP Method

renderLayout() public method

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

Usage Example

Example #1
0
 public function display()
 {
     $renderedView = $this->view->getRenderedView();
     if ($renderedView) {
         $this->layout->setRenderContent($renderedView);
     }
     $this->layout->renderLayout();
     $this->_removeMessages();
 }