FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
framework/index.php at master · haroldphp/framework · GitHub
haroldphp
framework
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
framework
/
index.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (14 loc) · 470 Bytes
Breadcrumbs
framework
/
index.php
Copy path
File metadata and controls
15 lines (14 loc) · 470 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
define
(
'
DEBUG
'
,
'
on
'
);
//必须设置此目录,PHP程序的根目录
define
(
'
WEBPATH
'
,
__DIR__
);
define
(
'
WEBROOT
'
,
'
http://local.framework.com
'
);
require
__DIR__
.
'
/vendor/autoload.php
'
;
//包含框架入口文件
require
__DIR__
.
'
/libs/lib_config.php
'
;
//开发环境的配置,如果此目录有配置文件,会优先选择
if
(
get_cfg_var
(
'
env.name
'
) ==
'
dev
'
)
{
Swoole::
$
php
->
config
->
setPath
(
WEBPATH
.
'
/apps/configs/dev/
'
);
}
Swoole::
$
php
->
runMVC
();
Back
|
FazBrowse Home
|
New Git URL