Can not run command line YiiC (command line tool)

Dear friends,

Please help.

I’m using Apache web server and PHP in separated folder, not like XAMPP, but I run them on Win XP. And Yii just fine, like this pict.

My web development is fine, until I try the YiiC based on page 8 of yii-guide-1.1.10.pdf (Yii guidance book), which said:

% YiiRoot/framework/yiic webapp WebRoot/testdrive

I’d already try with windows command prompt, but it doesn’t work.

just like my pict.

Please tell me what should I have to do ?

Thank

Didit

You have to add the php path in to your environment variable or make the comand as ,

…/pathtoPHP.exe. php yiic …

also before run this command make sure you are in yii framework folder

Try these steps

go to your yii framework folder.

then run following command

C:\Program Files\PHP\php.exe yiic webapp \path\you\need\to_create_your_app

Or its easy if you add the php path in to your environment variable