CakeResque插件不起作用 [英] CakeResque plugin not working
问题描述
我试图在cakephp 2.4中使用CakeResque插件,并按照每个链接的说明进行安装
I am trying to use CakeResque plugin in cakephp 2.4 and follow all installation instruction as per link
http://kamisama.me/2012/10/16/background- Jobs with-php-and-resque-part-6-integration-in-cakephp /
当我执行命令
cake CakeResque.CakeResque start
获取错误
错误:无法加载CakeResqueShell类。
Error: Class CakeResqueShell could not be loaded.
感谢任何帮助
谢谢
推荐答案
您必须先将CakeResque插件加载到CakePHP应用中。
You have to load the CakeResque plugin into your CakePHP app first.
在您的app / Config / bootstrap.php中,请确保该插件已加载
In your app/Config/bootstrap.php, make sure that the plugin is loaded with
CakePlugin::load('CakeResque' => array('bootstrap' => true));
或与
CakePlugin::loadAll('CakeResque' => array('bootstrap' => true));
bootstrap
键需要加载resque设置。 (您也可以指定您自己的引导程序文件的路径,而不是 true
)
the bootstrap
key is needed to load resque settings. (you can also specify a path to your own bootstrap file instead of true
)
如果仍然不起作用,也许您没有使用正确的蛋糕壳。您似乎使用
If that still does not work, maybe you're not using the "right" cake shell. You seems to use
cake CakeResque.CakeResque start
只需确保您环境中的 cake
命令就是您应用程序中的命令。测试以下内容:
Just make sure that the cake
command in your environment is the one inside you app. Test that:
cd path-to/app/Console
./cake CakeResque.CakeResque start
它仍然不起作用,欢迎您在 CakeResque 问题跟踪器。
It it still doesn't work, you're welcome to report your issue in CakeResque issues tracker.
这篇关于CakeResque插件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!