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.
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.