View file vkclone-0.0.1/public/index.php
<?php defined('YII_DEBUG') or define('YII_DEBUG', isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'localhost'); defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); require_once(dirname(__FILE__).'/../protected/yii.php'); Yii::$configDir = dirname(__FILE__).'/../protected/config'; Yii::createApplicationByType('CWebApplication', 'web')->run();