src/tools/MbPage.php
public function getController()
    {
        if ($this->controller instanceof MbController) {
            return $this->controller;
        }

        if (is_string($this->controller)) {
            $this->controller = MbController::create($this->controller);
        } else {
            throw new MbException("No Controller has been set for the page {$this->getName()}.");
        }

        return $this->controller;
    }
public function getController()
    {
        if ($this->controller instanceof MbController) {
            return $this->controller;
        }

        if (is_string($this->controller)) {
            $this->controller = MbController::create($this->controller);
        } else {
            throw new MbException("No Controller has been set for the page {$this->getName()}.");
        }

        return $this->controller;
    }
public function getController ( ) { if ( $ this -> controller instanceof MbController ) { return $ this -> controller ; } if ( is_string ( $ this -> controller ) ) { $ this -> controller = MbController :: create ( $ this -> controller ) ; } else { throw new MbException ( "No Controller has been set for the page {$this->getName()}." ) ; } return $ this -> controller ; }
Get page controller

@throws MbException

@return MbController
Get page controller