Added DB Access + Error page
This commit is contained in:
11
demos/blog/index.php
Normal file
11
demos/blog/index.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
// change the following paths if necessary
|
||||
$yii=dirname(__FILE__).'/../../framework/yii.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);
|
||||
Yii::createWebApplication($config)->run();
|
||||
Reference in New Issue
Block a user