Пример #1
0
    }
}
/*
 * load base MVC
 */
require_once CORE_PATH . '/MVC.php';
/*
 * get route file 
 */
/*$routes_path = $core_path . '/routes.php';
require_once $routes_path;*/
/*
 * check routes if URI is predefined
 */
if ($data_source_type == "mysql") {
    $route = $base->GET_ROUTES($URI_VAL);
    if ($route) {
        /*
         * get default template 
         */
        $temp_info = $base->GET_DEFAULT_TEMPLATE();
        if ($temp_info) {
            /*
             * get controller 
             */
            if ($route != "system") {
                $execution_info = explode("/", $route);
                $controller = $execution_info[0];
                $method = $execution_info[1];
                require_once CONTROLLERS_PATH . '/' . $controller . ".php";
                /*