`

Yii中扩展CWebApplication

    博客分类:
  • php
 
阅读更多
<?php

date_default_timezone_set("Asia/Chongqing");
// change the following paths if necessary
$yii=dirname(__FILE__).'/../yii/framework/yii.php';
$app=dirname(__FILE__).'/protected/components/MyApplication.php';
$config=dirname(__FILE__).'/protected/config/main.php';

// remove the following line when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);

require_once($yii);
require_once($app);

$app = new WeikeApplication($config);
$app->run();

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics