无法使用 Yii 框架创建示例应用程序

无法使用 Yii 框架创建示例应用程序

问题描述:

我是 PHP 新手.下载yii-1[1].1.4.r2429.zip"文件.并尝试使用 Yii PHP 框架创建示例应用程序

I am new to PHP. downloaded "yii-1[1].1.4.r2429.zip" file. and try to create sample application using Yii PHP framework

将 yii-1[1].1.4.r2429.zip 解压到此路径.

Extracted yii-1[1].1.4.r2429.zip to this path.

Windows 上的 C:\xampp\htdocs\yii

C:\xampp\htdocs\yii on windows

并尝试使用此指南创建示例应用程序

and try to create sample application using this guidelines

http://www.yiiframework.com/doc/guide/quickstart.first-app

在命令行上运行 yiic 如下:

Run yiic on the command line as follows:

不工作.

请帮忙

仔细检查您是否已安装 PHP CLI(命令行)并将其添加到您的 Windows 路径中.

Double check that you have PHP CLI (command line) installed and added to your Windows path.

另外,请确保您正在运行 yiic.bat - Windows 脚本.纯 yiic 脚本(无文件扩展名)是一个 Unix shell 脚本.你想要在 Win 上这样的东西:

Also, make sure you are running yiic.bat - the Windows script. The plain yiic script (no file extension) is a Unix shell script. You want something like this on Win:

YiiRoot/framework/yiic.bat webapp WebRoot/testdrive

如果 .bat 脚本不起作用,直接调用 PHP 到 yiic.php,像这样:

If the .bat script doesn't work, call PHP directly to yiic.php, like so:

php path\to\yii\framework\yiic.php webapp path\to\www\ApplicationName