This repository was archived by the owner on Dec 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Http:Redirect
gehrc edited this page Nov 7, 2014
·
1 revision
###Description
Contains functions for redirecting the browser to another URL.
####error() Redirects the user to an error page
Params
- int $no Error Number (default: 404)
Example
Redirect User to '403 Unauthorized' page
Redirect::error(403);
Notes
403 and 404 are included in the 'Error' controller by default, but additional error messages should be specified and entered in that section if necessary.
####go() Redirects the user to the specified internal page
Params
- string $section Section Name
- string $subsection Subsection Name
- string[] $params Additional URL Parameters in an Associative array (default: empty array)
Example
Redirect User to 'Welcome/info' page with 'success' phase
Redirect::go('Welcome', 'info', array('phase' => 'success');
THINKer Framework + Libraries Copyright © Cory Gehr. All rights reserved.