12 Star 14 Fork 10

easysoft / zentaophp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
wwccss 提交于 2016-06-27 16:13 . * fix the comment error.
<?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.
PHP
1
https://gitee.com/wwccss/zentaophp.git
git@gitee.com:wwccss/zentaophp.git
wwccss
zentaophp
zentaophp
master

搜索帮助