src/Mvc/Controller/AbstractController.php
protected function redirect($controller = null, $action = null)
    {
        if (null === $controller) {
            $controller = Application::getInstance()->getDefaultController();
        }
        if (null === $action) {
            $action = Application::getInstance()->getDefaultAction();
        }
        $destination = sprintf("Location: %s%s/%s", $this->request->getContextPrefix(), $controller, $action);
        header($destination);
        exit();
    }
protected function redirect($controller = null, $action = null)
    {
        if (null === $controller) {
            $controller = Application::getInstance()->getDefaultController();
        }
        if (null === $action) {
            $action = Application::getInstance()->getDefaultAction();
        }
        $destination = sprintf("Location: %s%s/%s", $this->request->getContextPrefix(), $controller, $action);
        header($destination);
        exit();
    }
Redirects the current request to another site

@param string $controller
The name of Controller to
@param string $action