Blame view

yohobuy/m.yohobuy.com/public/index-test.php 644 Bytes
hf authored
1 2 3
<?php
use Yaf\Application;
hf authored
4 5 6
define('SITE_MAIN', 'http://buy.test.yoho.cn'); // 网站主域名
define('OLD_MAIN', 'http://m.yohobuy.com'); // 网站旧域名
define('COOKIE_DOMAIN', '.test.yoho.cn'); // COOKIE作用域
7
define('SUB_DOMAIN', '.test.yoho.cn'); // 子域名后缀
8
define('USE_CACHE', true); // 缓存的开关
9 10
define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
hf authored
11 12 13 14
defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'testing');

$application = new Application(APPLICATION_PATH . '/configs/application.testing.ini');
$application->bootstrap()->run();