Skip to content

Instantly share code, notes, and snippets.

@pklink
Created March 9, 2016 16:34
Show Gist options
  • Save pklink/ce05d709dfa37a39c3c4 to your computer and use it in GitHub Desktop.
Save pklink/ce05d709dfa37a39c3c4 to your computer and use it in GitHub Desktop.
<?php
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
// change the following paths if necessary
$yii = dirname(__FILE__) . '/vendor/yiisoft/yii/framework/yii.php';
$config = dirname(__FILE__) . '/protected/config/main.php';
// $config=dirname(__FILE__).'/protected/config/test.php'; // for testing
/** @noinspection PhpIncludeInspection */
require_once($yii);
Yii::createWebApplication($config)->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment