且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-05-02 18:00:31

仔细检查您是否已安装 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