35 lines
308 B
PHP
35 lines
308 B
PHP
|
<?php
|
||
|
|
||
|
namespace router\controller;
|
||
|
|
||
|
|
||
|
class redirect{
|
||
|
|
||
|
|
||
|
/* PRE-CALL
|
||
|
*
|
||
|
* @url<String> Calling URI
|
||
|
*
|
||
|
*/
|
||
|
public function __construct($url){
|
||
|
}
|
||
|
|
||
|
|
||
|
/* CALL
|
||
|
*
|
||
|
*/
|
||
|
public function root(){
|
||
|
header('Location: /');
|
||
|
}
|
||
|
|
||
|
/* POST-CALL
|
||
|
*
|
||
|
*/
|
||
|
public function __destruct(){
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|