dongliqian6245 2011-04-01 02:54
浏览 20

控制台在CakePHP for Windows中找不到Shell

I'm having trouble getting the cake console on winows (XAMPP) to see the demo shell

C:\xampp\htdocs\twitter\app\vendors\shells>dir


2011/03/31  21:11    <DIR>          .
2011/03/31  21:11    <DIR>          ..
2011/03/31  21:16               761 demo.php
2011/03/31  21:01    <DIR>          tasks
2011/03/31  21:01    <DIR>          templates

I have the demo.php shell in the shell directory.

C:\xampp\htdocs\twitter\app\vendors\shells>cake demo

Error: Class DemoShell could not be loaded.

But the cake console couldn't find it.

C:\xampp\htdocs\twitter\app\vendors\shells>cake


Welcome to CakePHP v1.3.7 Console
---------------------------------------------------------------
Current Paths:
 -app: shells
 -working: C:\xampp\htdocs\twitter\app\vendors\shells
 -root: C:\xampp\htdocs\twitter\app\vendors
 -core: C:\xampp\htdocs\twitter

Changing Paths:
your working path should be the same as your application path
to change your path use the '-app' param.
Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp

Available Shells:
 acl [CORE]                              i18n [CORE]

 api [CORE]                              schema [CORE]

 bake [CORE]                             testsuite [CORE]

 console [CORE]

To run a command, type 'cake shell_name [args]'
To get help on a specific command, type 'cake shell_name help'


C:\xampp\htdocs\twitter\app\vendors\shells>

And it isn't recognised by the console itself. (note the core is reading from the correct directory).

It's probably some silly oversight but any idea what I am doing wrong here?

  • 写回答

2条回答 默认 最新

  • doujiao8491 2011-04-01 09:20
    关注

    Read the error, it does not say 'file not found' it says 'class not found' so it would seem you have named the class incorrectly inside your demo.php shell

    Error: Class DemoShell could not be loaded. that is a hint as to what it should be

    评论

报告相同问题?

悬赏问题

  • ¥15 C# datagridview 栏位进度
  • ¥15 vue3页面el-table页面数据过多
  • ¥100 vue3中融入gRPC-web
  • ¥15 kali环境运行volatility分析android内存文件,缺profile
  • ¥15 写uniapp时遇到的问题
  • ¥15 vs 2008 安装遇到问题
  • ¥15 matlab有限元法求解梁带有若干弹簧质量系统的固有频率
  • ¥15 找一个网络防御专家,外包的
  • ¥100 能不能让两张不同的图片md5值一样,(有尝)
  • ¥15 informer代码训练自己的数据集,改参数怎么改