src/Controller/User.php
public function redirect()
    {
        if (headers_sent() === false) {
            header('X-PHP-Response-Code: 403', true, 403);
        }
        if (isset($_GET['template']) === false) {
            return redirect($this->router->generate('login-page'));
        } else {
            return 'Redirect: ' . $this->router->generate('login-page');
        }
    }
public function redirect()
    {
        if (headers_sent() === false) {
            header('X-PHP-Response-Code: 403', true, 403);
        }
        if (isset($_GET['template']) === false) {
            return redirect($this->router->generate('login-page'));
        } else {
            return 'Redirect: ' . $this->router->generate('login-page');
        }
    }
public function redirect ( ) { if ( headers_sent ( ) === false ) { header ( 'X-PHP-Response-Code: 403' , true , 403 ) ; } if ( isset ( $ _GET [ 'template' ] ) === false ) { return redirect ( $ this -> router -> generate ( 'login-page' ) ) ; } else { return 'Redirect: ' . $ this -> router -> generate ( 'login-page' ) ; } }
Redirect to the login page
Redirect to the login page