Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', 1);
  3. error_reporting(E_ALL);
  4.  
  5. // change the following paths if necessary
  6. require_once(dirname(__FILE__) . '/protected/config/Environment.php');
  7. $environment = new Environment(Environment::DEVELOPMENT);
  8.  
  9. $yii = dirname(__FILE__) . '/../yii/framework/yii.php';
  10. //$config = dirname(__FILE__) . '/protected/config/main.php';
  11.  
  12. // remove the following lines when in production mode
  13.  
  14. defined('YII_DEBUG') or define('YII_DEBUG', true);
  15. //defined('YII_DEBUG') or define('YII_DEBUG', $environment->getDebug());
  16.  
  17. // defined('YII_DEBUG') or define('YII_DEBUG', false);
  18. // specify how many levels of call stack should be shown in each log message
  19. //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
  20. defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', $environment->getTraceLevel());
  21.  
  22. require_once($yii);
  23.  
  24. if (isset($_POST['PHPSESSID'])) {
  25. $_COOKIE['PHPSESSID'] = $_POST['PHPSESSID'];
  26. }
  27.  
  28. //Yii::createWebApplication($config)->run();
  29. Yii::createWebApplication($environment->getConfig())->run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement