2017-11-23 10:23:09 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace router\controller;
|
|
|
|
|
|
|
|
|
2017-12-06 16:12:08 +00:00
|
|
|
use kwebsocket\core\wsinterop;
|
|
|
|
|
2017-11-23 10:23:09 +00:00
|
|
|
class page{
|
|
|
|
|
|
|
|
|
|
|
|
private $pagename;
|
|
|
|
|
|
|
|
/* PRE-CALL
|
|
|
|
*
|
|
|
|
* @url<String> Calling URI
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public function __construct($url){
|
2017-11-29 11:29:27 +00:00
|
|
|
|
2017-12-08 03:22:34 +00:00
|
|
|
// $this->pagename = $url['page'];
|
2017-11-23 10:23:09 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* CALL
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public function load(){
|
2017-12-08 01:26:40 +00:00
|
|
|
loader::start();
|
2017-12-06 16:12:08 +00:00
|
|
|
|
2017-12-04 21:55:41 +00:00
|
|
|
if( file_exists(__ROOT__."/view/home.php") )
|
|
|
|
include __ROOT__."/view/home.php";
|
2017-11-23 10:23:09 +00:00
|
|
|
else
|
|
|
|
echo "page not found";
|
|
|
|
}
|
|
|
|
|
|
|
|
/* POST-CALL
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public function __destruct(){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|