function entry_point() { if (isset($_GET["rewrite"])) { $router = SCPV\Services\Routes::getInstance(); $router->routing(); } else { $page = \SCPV\Controllers\Home::getInstance(); $page->buildPage(); } }
<?php $router = SCPV\Services\Routes::getInstance(); // call the cgu controller $router->addRoute("#^\\/cgu\$#", "CGU");