Beispiel #1
0
        require_once 'QaController.php';
        $controller = new QaController();
        echo $controller->actions();
        die;
    }
    if (preg_match('/^about\\/(|\\?.*)$/Uu', $url, $matches)) {
        require_once 'StaticController.php';
        $controller = new StaticController('about');
        echo $controller->actions();
        die;
    }
    if (preg_match('/^feedback\\/(|\\?.*)$/Uu', $url, $matches)) {
        require_once 'FeedbackController.php';
        $controller = new FeedbackController();
        echo $controller->actions();
        die;
    }
    if (preg_match('/^(|\\?.*)$/Uu', $url, $matches)) {
        require_once 'IndexController.php';
        $controller = new IndexController();
        echo $controller->actions();
        die;
    }
    if (preg_match('/^news\\/(|\\?.*)$/Uu', $url, $matches)) {
        require_once 'NewsController.php';
        $controller = new NewsController();
        echo $controller->actions();
        die;
    }
}
go(core::$config['http_root'] . 'ru/');