ptut-vhost/build/router/controller/redirect.php

37 lines
351 B
PHP
Raw Permalink Normal View History

2018-02-17 17:18:58 +00:00
<?php
namespace router\controller;
class redirect{
2018-02-27 13:48:07 +00:00
private $url;
2018-02-17 17:18:58 +00:00
/* PRE-CALL
*
* @url<String> Calling URI
*
*/
public function __construct($url){
2018-02-27 13:48:07 +00:00
$this->url = $url;
2018-02-17 17:18:58 +00:00
}
/* CALL
*
*/
public function home(){
header('Location: /home/');
2018-02-17 17:18:58 +00:00
}
/* POST-CALL
*
*/
public function __destruct(){
}
}