Yii Framework Forum: error with yii shell - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

error with yii shell error: index.php does not exist or is not a script file Rate Topic: -----

#1 User is offline   javi_08 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 05-September 10

Posted 05 September 2010 - 05:05 PM

Hi everybody!

I'm a noob, and I'm trying to generate CRUD model. My problem is when I try to execute yhe yii shell, the following message is displayed.

error: index.php does not exist or is not a script file

I had the same result when I was trying to create the default application, but I executed the alternative command (php YiiRoot/framework/yiic.php webapp testdrive) in xampp/php/ folder.

How could I "say" to yii when are the php files required??

Thank you for your attention, greetings
0

#2 User is offline   Raoul 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 647
  • Joined: 29-November 08
  • Location:Paris, France

Posted 06 September 2010 - 06:28 AM

Hi javi_08,
assuming Yii is installed in C:\project\lib\php\yii-1.1.3.r2247\framework and that your Yii app is in C:\project\MyApp try :

C:\project\lib\php\yii-1.1.3.r2247\framework\yiic shell C:\project\MyApp\index.php


To create the skeleton app it would be :

C:\project\lib\php\yii-1.1.3.r2247\framework\yiic webapp c:\project\AnotherApp


As you can see, this example is for Windows but it should work the same on other OS.
Hope this helps
ciao
B)
0

#3 User is offline   mbi 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 608
  • Joined: 08-May 09

Posted 06 September 2010 - 08:48 AM

try to start yiic from your application protected folder
yiic shell ../index.php

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users