我想分析Yii框架的代码......但我找不到索引文件:E它在哪里,以及如果.htaccess不包含任何特定内容,服务器如何知道要搜索的内容规则?
答案 0 :(得分:1)
首先必须设置框架(在命令提示符下)。 Here is a fairly straight forward guide关于完成此操作并here is a guide from the Yii website。
设置框架后,您将拥有index.php文件
答案 1 :(得分:1)
Yii是一个框架,而不是网站。要查看基本的webapp,请创建它(从@eskimo观看link)
答案 2 :(得分:0)
enter code here
$ sudo / path / to / yii / framework / yiic webapp / 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();
?>