目录结构更新,增加composer支持

This commit is contained in:
2018-01-14 09:41:28 +08:00
parent ae46a73172
commit 0c7d06de51
29 changed files with 506 additions and 0 deletions

24
web/index.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
// [ 应用入口文件 ]
if(version_compare(PHP_VERSION,'5.4.0','<')) die('require PHP > 5.4.0 !');
// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');
define('BASE_PATH', substr($_SERVER['SCRIPT_NAME'], 0, -10));
/**
* 缓存目录设置
* 此目录必须可写建议移动到非WEB目录
*/
define ( 'RUNTIME_PATH', __DIR__ . '/../data/' );
// 加载框架引导文件
require __DIR__ . '/../framework/start.php';