public static function createPageByModule() { if (isset($_GET["module"])) { $urlModule = ucfirst(strtolower(filterGetValue($_GET["module"]))); $command = new CCommand(); $module = $command->createObj($urlModule, 'Module'); $module->includeModule(); self::createPageByController($urlModule . 'Module'); } return; }
<?php include $_SERVER["DOCUMENT_ROOT"] . "/engine/protected/prolog.php"; if (GMVC_ON) { $controller = new CGmvcController(); if (!isset($_GET["view"])) { $controller->indexAction(); } else { $view = filterGetValue($_GET["view"]); $command = new CCommand(); $action = $command->createAction($view); $controller->{$action}(); } } else { CApp::redirect("/errors/404.php"); }