<?php
header("Content-type: text/html; charset=utf-8");
//zpx23
header('Access-Control-Allow-Origin: *'); // 允许所有来源的跨域请求
header('Access-Control-Allow-Methods: *'); // 允许所有HTTP方法的跨域请求
header('Access-Control-Allow-Headers: *'); // 允许所有的请求头
define('YII_ENV_DEV',true);
define('YII_ENV',true);
/*$cofings=file_exists(('/www/wwwroot/bkycms.com/data/config.php'));
var_dump($cofings);die;*/
// comment out the following two lines when deployed to production
error_reporting(E_ERROR | E_PARSE);
date_default_timezone_set('PRC');
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
define('IN_IA', true);

require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/config/bootstrap.php';
$config = require __DIR__ . '/config/web.php';

(new yii\web\Application($config))->run();
