main/build/router/controller/page.php

47 lines
516 B
PHP
Raw 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){
$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(){
}
}