PHP 클래스 Redirector, miniPHP

파일 보기 프로젝트 열기: omarelgabry/miniphp 1 사용 예제들

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

dashboard() 공개 메소드

Redirect to the dashboard
public dashboard ( )

login() 공개 메소드

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() 공개 메소드

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

to() 공개 메소드

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