onunix 2012-05-15 11:26:52 3963次浏览 1条回复 0 0 0

运行yiic shell报错,说index.php的问题,查了下 Yii目录下有个index.php,应该说的是存在的,并且该页面通过浏览器可以打开 。请问为什么会报这个错呢?

D:\skill\finance\yii-1.1.10.r3566\framework>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.


D:\skill\finance\yii-1.1.10.r3566\framework>
  • 回复于 2012-05-15 13:51 举报

    错误里说的很清楚了 yiic shell [entry-script | config-file] 你少了第三个参数。

您需要登录后才可以回复。登录 | 立即注册