Unzip Yii framework to your webroot directory, Example in wamp server, unzip to "wamp/www/yii" directory. The structure should look like this :
In windows XP/Vista:
Goto:
Start -> My Computer (right click!) -> Advanced Tab -> Environment Variables -> Click Path in System variables -> Edit
In windows 7:
Goto:
Start -> type "env" -> click "Edit the system environment variables" from search results
Click on the variable called PATH and click "Edit...". Do not delete the paths already there! Separate each path with semicolons.
Now you have to add the following PATHs in Windows: "C:\wamp\bin\php\php5.2.8" and "C:\wamp\www\framework". The former path should lead where your php.exe resides, and the latter where your yiic.bat resides.
After entering the paths, type cmd in your startmenus searchfield, and go to the webroot. You may have to restart the computer if this does not work for you so that Windows can register the new variables.
yiic webapp mywebsite
Will generate a Yii skeleton for your web application inside the directory "mywebsite" in your WAMP webroot folder. One reason that you should stand in your WAMP webroot when giving the yiic commands is that you don't have to specify where you want the web application generated.
0 comments:
Post a Comment