2012-12-04 58 views
0

我想分析Yii框架的代碼...但是我找不到索引文件:E它在哪裏,以及服務器如何知道要搜索的內容,如果.htaccess沒有找到,是否包含任何特定的規則?Yiii - 索引文件

+1

Yiii =但它是索引? –

+0

是不是index.php默認服務器的文件? – khernik

回答

1

Yii是一個框架,而不是網站。要了解基本的web應用程序創建它(觀看@eskimo link

0

在Linux終端類型enter code here

$ sudo的/路徑/到/警予/框架/ Web應用程序的yiic在/ var/WWW/installationfolder

或乾脆閱讀README

上安裝的文件夾,你會發現的index.php

這裏代碼反正

<?php 

// change the following paths if necessary 


$yii=dirname(__FILE__).'/../yii/framework/yii.php'; 
$config=dirname(__FILE__).'/protected/config/main.php'; 

// remove the following lines when in production model 

defined('YII_DEBUG') or define('YII_DEBUG',true); 

// specify how many levels of call stack should be shown in each log message 


defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 

require_once($yii); 
Yii::createWebApplication($config)->run(); 

?>