First off I would like to say I like this project a lot so far and I think it will help me tremendous in my current project. However I am having a problem with the command line tool. I first started trying to run the back fine in the folder
D:\xampp\htdocs\yii\framework
I kept getting the error:
D:\xampp\htdocs\yii\framework>yiic
‘php.exe’ is not recognized as an internal or external command,
operable program or batch file.
So I opened the batch file and updated it to the exact location of my php.exe file:
@setlocal
set YII_PATH=%~dp0
if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:\xampp\php\php.exe
%PHP_COMMAND% "%YII_PATH%yiic" %*
@endlocal
Then I was able to run the command:
yiic webapp D:\xampp\htdocs\ats
This generated the application framework happy and good so far.
Now I am trying to generate the models and I am running into a issue that will give me no error. It just stops.
Microsoft Windows [Version 5.2.3790]
© Copyright 1985-2003 Microsoft Corp.
D:\xampp\htdocs\ats\protected>yiic shell
Error: index.php does not exist or is not an entry script file.
USAGE
yiic shell [entry-script | config-file]
DESCRIPTION
This command allows you to interact with a Web application
on the command line. It provides tools to automatically
generate new controllers, views and data models.
It is recommended that you execute this command under
the directory that contains the entry script file of
the Web application.
PARAMETERS
-
entry-script | config-file: optional, the path to
the entry script file or the configuration file for
the Web application. If not given, it is assumed to be
the ‘index.php’ file under the current directory.
D:\xampp\htdocs\ats\protected>yiic shell D:\xampp\htdocs\ats\index.php
Yii Interactive Tool v1.0 (based on Yii v1.0.11-dev)
Please type ‘help’ for help. Type ‘exit’ to quit.
>> model User
D:\xampp\htdocs\ats\protected>
Please help me