示例#1
0
function entry_point()
{
    if (isset($_GET["rewrite"])) {
        $router = SCPV\Services\Routes::getInstance();
        $router->routing();
    } else {
        $page = \SCPV\Controllers\Home::getInstance();
        $page->buildPage();
    }
}
示例#2
0
文件: cgu.php 项目: ElPolloLoco/SCPV
<?php

$router = SCPV\Services\Routes::getInstance();
// call the cgu controller
$router->addRoute("#^\\/cgu\$#", "CGU");