src/generic/controller.php
protected function responseRedirect($url, $status = null)
    {
        $responseWithRedirect = $this->_response->withHeader('Location', (string)$url);
        if (is_null($status) && $this->_response->getStatusCode() === 200) {
            $status = 302;
        }
        if (!is_null($status)) {
            return $responseWithRedirect->withStatus($status);
        }
        return $responseWithRedirect;
    }
protected function responseRedirect($url, $status = null)
    {
        $responseWithRedirect = $this->_response->withHeader('Location', (string)$url);
        if (is_null($status) && $this->_response->getStatusCode() === 200) {
            $status = 302;
        }
        if (!is_null($status)) {
            return $responseWithRedirect->withStatus($status);
        }
        return $responseWithRedirect;
    }
protected function responseRedirect ( $ url , $ status = null ) { $ responseWithRedirect = $ this -> _response -> withHeader ( 'Location' , ( string ) $ url ) ; if ( is_null ( $ status ) && $ this -> _response -> getStatusCode ( ) === 200 ) { $ status = 302 ; } if ( ! is_null ( $ status ) ) { return $ responseWithRedirect -> withStatus ( $ status ) ; } return $ responseWithRedirect ; }
set redirekt url in response
@param string $url
@param int $status
@return \Zend\Diactoros\Response
set redirekt url in response