mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[TASK] Changes
- Added support for alias on RouterRoute. - Added typo in resource (renamed class from Ressource to Resource). - Added optional settings parameter in most of the methods in the SimpleRouter class.
This commit is contained in:
@@ -22,6 +22,11 @@ class Response {
|
||||
*/
|
||||
public function redirect($url) {
|
||||
header('location: ' . $url);
|
||||
die();
|
||||
}
|
||||
|
||||
public function refresh() {
|
||||
$this->redirect(url());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user