-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.php
More file actions
42 lines (33 loc) · 944 Bytes
/
index.php
File metadata and controls
42 lines (33 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* file: index.php
*
* application index
* @author tommy <tommy@doitphp.com>
* @copyright Copyright (C) 2009-2012 www.doitphp.com All rights reserved.
* @version $Id: index.php 2.6 2017-02-02 21:24:00Z tommy $
* @package application
* @since 1.0
*/
define('IN_DOIT', true);
/**
* 定义项目所在路径(根目录):APP_ROOT
*/
define('APP_ROOT', dirname(__FILE__));
/**
* 自定义DoitPHP框架目录文件所在路径。注:结尾无需"/"。
*/
define('DOITPHP_PATH', APP_ROOT . '/../doitphp');
/**
* 自定义所要创建及管理项目(project)的目录路径。注:结尾无需"/"。
*/
define('WEB_APP_PATH', substr(APP_ROOT, 0, -6));
/**
* 加载DoitPHP框架的初始化文件,如果必要可以修改文件路径
*/
require_once rtrim(DOITPHP_PATH, '/') . '/DoitPHP.php';
$config = APP_ROOT . '/application/config/application.php';
/**
* 启动应用程序(网站)进程
*/
Doit::run($config);