CRUD in shell


I am trying to make a class in shell (from, but smth is wrong.

I had some problems with php path, but after reading cookbook replaced:

if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:\xampp\php\php.exe

I am not sure if I should even set BIN_PATH manually.

My steps:

Created and verified that skeleton is created and working:

% YiiRoot/framework/yiic webapp WebRoot/testdrive

Test for right category:

Try to run shell (is it even supposed to work for win?):

Try to create a User model:

Okey. Whan now? :D

in cli move to your project/protected-folder, then:

yiic shell ../index.php

create your project with yiic in your framework-folder

create all project related things with yiic in your projects protected folder

Thanx, it worked :D .

If somebody here has permissions, it would be nice to add solution to the cookbook.