1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/wwccss-zentaophp

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
index.php 1.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
wwccss Отправлено 27.06.2016 11:13 4dab13b
<?php
/**
* 整个应用的入口文件。
* The router file of zentaophp.
*
* All request should be routed by this router.
*
* The author disclaims copyright to this source code. In place of
* a legal notice, here is a blessing:
*
* May you do good and not evil.
* May you find forgiveness for yourself and forgive others.
* May you share freely, never taking more than you give.
*/
/* 先关闭所有的错误输出。Turn off error reporting first. */
error_reporting(0);
/* 使用ob捕获所有的输出。Use ob to get output. */
ob_start();
/* 加载框架核心文件。Load the framework. */
include './framework/router.class.php';
include './framework/control.class.php';
include './framework/model.class.php';
include './framework/helper.class.php';
/* 响应请求。Response the request. */
$app = router::createApp('demo', dirname(__FILE__), 'router'); // 实例化router。 Instance the router class.
$common = $app->loadCommon(); // 加载common模块。Load the common module.
$app->parseRequest(); // 解析请求。 Parse the request.
$app->loadModule(); // 加载模块。 Load module.
echo helper::removeUTF8Bom(ob_get_clean()); // 输出内容。 Print the output.

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/wwccss-zentaophp.git
git@api.gitlife.ru:oschina-mirror/wwccss-zentaophp.git
oschina-mirror
wwccss-zentaophp
wwccss-zentaophp
master