Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (27 sloc) 0.945 kb
<?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors',1);
defined('YII_DEBUG') or define('YII_DEBUG',true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
// absolute path to framework so all apps and versions use the same yii
/** @noinspection PhpIncludeInspection */
require_once(__DIR__ . '/../../yii/framework-1.1.10/YiiBase.php');
class Yii extends YiiBase {
/**
* @return \CApplication|\CWebApplication
*/
public static function app() {
return parent::app();
}
}
// Ignore this function for the exercise, its my trace shortcut function. :)
function tr($tracevar, $description='', $exit=0) {
Yii::trace(CVarDumper::dumpAsString($tracevar),'<b>DebugTrace: '.$description.'</b>');
if($exit) {
Yii::app()->end();
}
}
Yii::$classMap = array(
'CActiveFinder'=>'protected/extensions/classMap/CActiveFinder.php',
);
Yii::createWebApplication(__DIR__ . '/protected/config/main.php')->run();
Jump to Line
Something went wrong with that request. Please try again.