main/build/router/controller/page.php

47 lines
519 B
PHP
Raw Permalink Normal View History

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