I’m totally new to YII and I’m reading the book now. The first thing I need to do is use yiic in the command prompt.
I’ve made a folder C:/Site/demo for my first demo. In that folder I’ve placed my YII software. Now when I go in the command prompt and type framework/yiic webapp demo when I’m in C:/site/demo it says it doesn’t recognize framework as a command. Can someone tell me what I do wrong?
I’m using the definitive guid now instead of the book. The only thing I still don’t understand of is that if I’m creating a new website named test, I need to create a folder test in my c:/Wamp/WWW folder. Should I also put my YII software in my test folder? Or should I also create a folder C:/wamp/www/yii folder in which I put the YII software?
The definitive guide is the bare minimum you need to understand Yii… after the guide you can go with the book you will understand it better…
As for the yii framework… it’s all matter of taste… you can put it in the application folder ( c:\wamp\www\test\yii ) or in the web root folder (c:\wamp\www\yii )
First option is maybe better if you develop only one application and need to send it to someone, than you have all in one folder…
The second option is better as you can develop more applications all using the same yii folder…
When you unpack yii… you get 3 folders demos, framework and requirements… For your application you need only the framework folder so you can put it’s content in the c:\wamp\www\test\yii…
Then in the command prompt you go to c:\wamp\www and run as:
When I do that the command prompt says that php.exe isn’t recognized. Buw I did install my WAMP and everything seems to be running. The requirements also say that it should work.