PHP 클래스 Redirect, huge

상속: extends CI_Model
파일 보기 프로젝트 열기: panique/huge 1 사용 예제들

공개 메소드들

메소드 설명
home ( ) To the homepage
to ( $path ) To the defined page, uses a relative path (like "user/profile")
toPreviousViewedPageAfterLogin ( $path ) To the last visited page before user logged in (useful when people are on a certain page inside your application and then want to log in (to edit or comment something for example) and don't to be redirected to the main page).

메소드 상세

home() 공개 정적인 메소드

To the homepage
public static home ( )

to() 공개 정적인 메소드

Redirects to a RELATIVE path, like "user/profile" (which works very fine unless you are using HUGE inside tricky sub-folder structures)
또한 보기: https://github.com/panique/huge/issues/770
또한 보기: https://github.com/panique/huge/issues/754
public static to ( $path )
$path string

toPreviousViewedPageAfterLogin() 공개 정적인 메소드

This is just a bulletproof version of Redirect::to(), redirecting to an ABSOLUTE URL path like "http://www.mydomain.com/user/profile", useful as people had problems with the RELATIVE URL path generated by Redirect::to() when using HUGE inside sub-folders.
public static toPreviousViewedPageAfterLogin ( $path )
$path string