コード例 #1
0
ファイル: autoload.php プロジェクト: abachi/MVC
}
//cliprz::get_instance();
cliprz::system_use(security, security);
cliprz::system_use(language . 's', language);
cliprz::system_use(error . 's', error);
if ($_config['db']['use_database'] == true) {
    define("database", 'database', true);
    cliprz::system_use(database . 's', database);
}
cliprz::system_use(model . 's', model);
if (file_exists(APP_PATH . 'config' . DS . 'constants.php')) {
    require_once APP_PATH . 'config' . DS . 'constants.php';
}
if (file_exists(APP_PATH . 'config' . DS . 'wakeup.php')) {
    require_once APP_PATH . 'config' . DS . 'wakeup.php';
}
cliprz::system_use(session . 's', session);
if (file_exists(APP_PATH . "config" . DS . "libraries.php")) {
    require_once APP_PATH . "config" . DS . "libraries.php";
}
cliprz::system_use(view . 's', view);
cliprz::system_use(css, css);
cliprz::system_use(router, 'uri');
cliprz::system_use(router, router);
cliprz::system_use(http, http);
// get user constants file;
if (file_exists(APP_PATH . 'config' . DS . 'router.php')) {
    require_once APP_PATH . 'config' . DS . 'router.php';
}
require_once FUNCTIONS . 'system.functions.php';
cliprz::system(router)->handler();