FOF30\Controller\Controller::redirect PHP Method

redirect() public method

Redirects the browser or returns false if no redirect is set.
public redirect ( ) : boolean
return boolean False if no redirect exists.
    public function redirect()
    {
        if ($this->redirect) {
            $app = \JFactory::getApplication();
            $app->enqueueMessage($this->message, $this->messageType);
            $app->redirect($this->redirect);
            return true;
        }
        return false;
    }