You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
352 B
PHP
15 lines
352 B
PHP
<?php
|
|
require 'vendor/autoload.php';
|
|
// 应用目录
|
|
$rootDir = dirname(__FILE__);
|
|
$appDir = 'app';
|
|
|
|
if (substr($_SERVER['HTTP_HOST'], -3, 3) === '.me') {
|
|
@ini_set('display_errors', '1');
|
|
error_reporting(E_ALL);
|
|
}
|
|
ini_set('default_charset', 'utf-8');
|
|
// 启动MVC
|
|
include $rootDir . '/zc-framework/zc.php';
|
|
Zc::init($rootDir, $appDir);
|
|
Zc::runMVC(); |