From fa4c6912d6b0cfc60d88518c6c62f14a6a67d8a4 Mon Sep 17 00:00:00 2001 From: topnuomi <1130395124@qq.com> Date: Wed, 19 Jun 2019 15:06:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=85=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/Framework.php | 1 + public/index.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/framework/Framework.php b/framework/Framework.php index 3df3115..b6e69dc 100644 --- a/framework/Framework.php +++ b/framework/Framework.php @@ -22,6 +22,7 @@ class Framework { /** * 执行 + * @param string $callable */ public static function startApp($callable = '') { header('content-type: text/html; charset=utf-8'); diff --git a/public/index.php b/public/index.php index a17a920..655f2d7 100644 --- a/public/index.php +++ b/public/index.php @@ -26,6 +26,12 @@ require '../framework/Framework.php'; // Framework::resourcePath('/resource/'); // 可使用常量RESOURCE取得该值 +// 当前入口文件默认模块,缺省值:home +// Framework::defaultModule('home'); + +// 路由模式,缺省值:1(pathinfo和兼容模式) +// Framework::runType(1); + Framework::appPath('../application/'); // 执行程序