PHP Class Redirector, miniPHP

Exibir arquivo Open project: omarelgabry/miniphp Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor
dashboard ( ) Redirect to the dashboard
login ( string | null $redirect_url = null ) Redirect to the login page $redirect_url is to send the user back to where he/she came from after login
root ( string $location = "", $query = "" ) Redirect to the given location from the root
to ( string $location, $query = "" ) Redirect to the given location

Method Details

__construct() public method

Constructor
public __construct ( )

dashboard() public method

Redirect to the dashboard
public dashboard ( )

login() public method

Redirect to the login page $redirect_url is to send the user back to where he/she came from after login
public login ( string | null $redirect_url = null )
$redirect_url string | null

root() public method

Redirect to the given location from the root
public root ( string $location = "", $query = "" )
$location string

to() public method

Redirect to the given location
public to ( string $location, $query = "" )
$location string