src/core/AbstractWebCtrl.php
protected function render(): void
    {
        if (!is_null($this->layout)) {
            $this->layout->render();
        } elseif (!is_null($this->view)) {
            $this->partialRender();
        } else {
            throw new Exception("It's unable to render with empty View.");
        }
    }
protected function render(): void
    {
        if (!is_null($this->layout)) {
            $this->layout->render();
        } elseif (!is_null($this->view)) {
            $this->partialRender();
        } else {
            throw new Exception("It's unable to render with empty View.");
        }
    }
It renders the page both full (layout with view) and partial (view only).
@return void
@throws \nadir2\core\Exception It's thrown if the view is empty.