Yiii-索引文件

Yiii-索引文件,yii,Yii,我想分析Yii框架的代码…但我找不到索引文件:E。如果.htaccess不包含任何特定规则,它在哪里?服务器如何知道要搜索什么?您首先必须设置框架(在命令提示符下)。 至于完成这件事,还有 框架设置完成后,您将有一个index.php文件Yii是一个框架,而不是网站。要查看基本webapp创建它(从@eskimo观看)在linux终端类型中在此处输入code $sudo/path/to/yii/framework/yiic webapp/var/www/installationfolder 或者

我想分析Yii框架的代码…但我找不到索引文件:E。如果.htaccess不包含任何特定规则,它在哪里?服务器如何知道要搜索什么?

您首先必须设置框架(在命令提示符下)。 至于完成这件事,还有


框架设置完成后,您将有一个index.php文件

Yii是一个框架,而不是网站。要查看基本webapp创建它(从@eskimo观看)

在linux终端类型中在此处输入code

$sudo/path/to/yii/framework/yiic webapp/var/www/installationfolder

或者干脆读自述

在已安装的文件夹中,可以找到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();

?>


Yiii=它是index吗?index.php不是默认服务器的文件吗?