CakeResque - Resque在第82行中找不到... app / Plugin / CakeResque / Lib / CakeResque.php [英] CakeResque - Resque not found in ...app/Plugin/CakeResque/Lib/CakeResque.php on line 82
问题描述
CakeResque - Resque在第82行中找不到... app / Plugin / CakeResque / Lib / CakeResque.php
CakeResque - Resque not found in ...app/Plugin/CakeResque/Lib/CakeResque.php on line 82
a href =http://cakeresque.kamisama.me/install#requirements =nofollow> http://cakeresque.kamisama.me/install#requirements 以使用我的CakePHP项目设置CakeResque,但是Resque类未加载。我使用Composer安装了CakeResque,我假设我缺少一些东西(可能的自动加载器),但没有运气。
I've followed the instructions here: http://cakeresque.kamisama.me/install#requirements to setup CakeResque with my CakePHP project but the Resque class isn't loading. I installed CakeResque using Composer and I'm assuming I'm missing something (possible autoloader) but with no luck.
任何帮助。感谢。
推荐答案
确保供应商目录在 app / composer.json
{
"require": {
"kamisama/cake-resque": "^4.1"
},
"config": {
"vendor-dir": "Vendor"
}
}
<
in the app/Config/core.php
require the autoload
require_once dirname(__DIR__) . '/Vendor/autoload.php';
这篇关于CakeResque - Resque在第82行中找不到... app / Plugin / CakeResque / Lib / CakeResque.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!