Yii Framework Forum: I caught a trouble when I use Yiic as in the definitive Guide - Yii Framework Forum

Jump to content

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

I caught a trouble when I use Yiic as in the definitive Guide index.php does not exist or is not an entry script file. Rate Topic: -----

#1 User is offline   yiishow 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 07-January 10

Posted 27 February 2010 - 12:20 PM

I had use 'yiic webapp' to build the app sucessfully,but when I want to use 'yii shell',it take wrong,as followed ,thx.

F:\wwwroot\yiitest\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 also 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.
0

#2 User is offline   tri 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,651
  • Joined: 20-November 08
  • Location:Stockholm, Sweden

Posted 27 February 2010 - 01:15 PM

cd <your-app-directory>
protected/yiic shell


/Tommy
Don't forget to read The Definitive Guide to Yii (en) (sv) | The class reference has the details
0

#3 User is offline   yiishow 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 07-January 10

Posted 27 February 2010 - 08:44 PM

thx
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