예제 #1
0
<?php

global $config;
//定义类文件后缀名
const CLASS_EXT = ".class.php";
//定义项目目录
const _ROOT_ = __DIR__ . '/';
//定义项目其他目录
const CONF_PATH = _ROOT_ . 'config/';
const CORE_PATH = _ROOT_ . 'core/';
define('TIME', time());
//引入公共函数
include _ROOT_ . 'functions.php';
include_once CORE_PATH . '/App' . CLASS_EXT;
$app = \core\App::get();
//broadcast
//启动
$app->start();