Hi. I’m trying to get YiiFramework setup on a XAMPP local host. I’ve gone through all the steps up to the point of running yiic webapp. When I try to do this, it fails with the error "Could not open input file: c:\xampp\htdocs\YiiFramework\yiic I have checked to make sure that yiic exists there and it does. I’ve also checked to make sure I have admin privileges. I do. I’m just using the Windows Command Prompt to run the batch. What now?
I found the answer to the last question on Stack Overflow:
[indent]"The variable %0 in a batch script is set to the name of the executing batch file. The ~dp special syntax between the % and the 0 basically says to expand the variable %0 to show the drive letter and path, which gives you the current directory containing the batch file!"[/indent]
So, basically, all this batch file does is to start php.exe and then run yiic.
I’m wondering…maybe the batch file doesn’t know that it should run yiic.php instead of yiic.bat…
AHA!
I changed the yii.bat file to specify what php is supposed to run, like this: