public function redirect($url, $statusCode = 302)
    {
        $context = Context::getInstance();

        header(HTTPToolkit::statusCodeHeader($statusCode));
        header(HTTPToolkit::locationHeader($url));

        throw new InterruptedActionException(
            'Interrupted action after a redirection',
            $context->getModuleName(),
            $context->getActionName()
        );
    }
public function redirect($url, $statusCode = 302)
    {
        $context = Context::getInstance();

        header(HTTPToolkit::statusCodeHeader($statusCode));
        header(HTTPToolkit::locationHeader($url));

        throw new InterruptedActionException(
            'Interrupted action after a redirection',
            $context->getModuleName(),
            $context->getActionName()
        );
    }
public function redirect ( $ url , $ statusCode = 302 ) { $ context = Context :: getInstance ( ) ; header ( HTTPToolkit :: statusCodeHeader ( $ statusCode ) ) ; header ( HTTPToolkit :: locationHeader ( $ url ) ) ; throw new InterruptedActionException ( 'Interrupted action after a redirection' , $ context -> getModuleName ( ) , $ context -> getActionName ( ) ) ; }
Redirect using the TAO FlowController implementation

@see {@link oat\model\routing\FlowController}
@param string $url
@param int $statusCode
@throws InterruptedActionException
Redirect using the TAO FlowController implementation