Skip to content

Instantly share code, notes, and snippets.

@DrMabuse23
Created December 12, 2011 14:01
Show Gist options
  • Save DrMabuse23/1467293 to your computer and use it in GitHub Desktop.
Save DrMabuse23/1467293 to your computer and use it in GitHub Desktop.
$yii=realpath(dirname(__FILE__).'/../framework/yii.php');
$config=realpath(dirname(__FILE__).'/../site/protected/config/main.php');
require_once($yii);
Yii::createWebApplication($config);
$as=Yii::app()->assetManager;
$as->setBasePath(realpath(dirname(__FILE__).'/../site/assets/'));
Yii::app()->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment