CakeResque - Resque在第82行中找不到... app / Plugin / CakeResque / Lib / CakeResque.php [英] CakeResque - Resque not found in ...app/Plugin/CakeResque/Lib/CakeResque.php on line 82

查看:247
本文介绍了CakeResque - Resque在第82行中找不到... app / Plugin / CakeResque / Lib / CakeResque.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆