How To Use The Sample Code

Ok so, I’ve purchased Yii 1.1 Application Development Cookbook, and read chapter 1. I downloaded the sample code.

How can i actually RUN the sample code? I have WAMP running on my laptop, and I successfully am running , and playing around with , localhost/yii-demos/blog/ …

But, so how do i use the chapter 1 example code? I am really stumped.

It seems like it only gets you to create an actual application in chapter 2 where it says:

I’m using XAMPP and put the Yii framework in htdocs/yii (BTW to access it you can go to localhost/yii if Apache is running)

Using the command prompt I did:

cd c:\xampp\htdocs\yii\framework

yiic webapp c:\xampp\htdocs\yii\testname

BTW you need the path to php in the environmental variables in the advanced windows system properties…



BTW when I pasted in code from Kindle for Windows into Notepad++ I had to do a find and replace for some of the space characters… (they had an ascii value of 160 instead of 32)