how to create webapp with yiic command using Yii F

2019-05-08 02:54发布

I'm trying to build my first app in Yii, the guide on their website at the following address: http://www.yiiframework.com/doc/guide/1.1/he/quickstart.first-app # add-comment The problem is that any issue installing the application framework through the YIIC can not have that. I did the following: 1. I went through the CMD Library of the framework that is my WAMP server. 2. I wrote the following command: yiic.php webapp www/blog, I also tried the following command: yiic webapp www/blog.

As I understand their guide, should there be a directory called blog with a skeleton application. What actually happens is that windows opens me the window titled "Open With" asking me to choose which program I want to open the yiic.php to view the contents of the file.

标签: yii
7条回答
小情绪 Triste *
2楼-- · 2019-05-08 03:42

I think you're on Windows? It needs to know that php files should be opened with php.exe, so you'll need to call php.exe yiic.php webapp www/blog.

To provide this, they also added yiic.bat, so you can just call yiic webapp www/blog, provided that php.exe is in your environment path. If not, it may be just as well to add it (Computer, properties, advanced settings, environment variables), so you can execute php scripts more easily in the future.

查看更多
登录 后发表回答