refresh(); } /* * Routing */ $path = explode('/',explode('?',__PATH)[0]); $assetsLevel = count($path)-1; switch($path[0]){ case '': $path[0] = WEBSITE_DEFAULT_PATH; require_once(CONTROLLER_PATH.WEBSITE_DEFAULT_PATH.'.php'); break; case (is_file(CONTROLLER_PATH. $path[0] .'.php')): require_once(CONTROLLER_PATH.$path[0].'.php'); break; default: require_once(CONTROLLER_PATH.'404.php'); }