landong66
- landong66 2020-04-16 已签到连续签到1天,获得了5个金钱
- landong66 2020-04-08 已签到连续签到2天,获得了10个金钱
- landong66 2020-04-07 已签到连续签到1天,获得了5个金钱
- landong66 2020-04-03 已签到连续签到1天,获得了5个金钱
- landong66 2020-03-27 已签到连续签到1天,获得了5个金钱
- landong66 2020-03-19 已签到连续签到1天,获得了5个金钱
- landong66 2020-03-05 已签到连续签到2天,获得了10个金钱
请问以下yii2 基础版本 怎么安装queue呢,高级版本安装成功了,但是我现在项目用的是基础版本,最后没有init.bat来重置生成 在cmd下 yii后,都没有关于queue的命令
@小名格 额,这个现在无法帮到你了,配置还可以,好久没搞忘记了
配置如下
基础版的要在web.php配置文件里面加入
'bootstrap' => ['log', 'queue', 'createuser' ], 'modules' => [ 'game' => [ 'class' => 'app\modules\game\Module', ], ], 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => 'ming', 'parsers' => [ 'application/json' => 'yii\web\JsonParser', ], ], 'queue' => [ 'class' => \yii\queue\redis\Queue::class, 'redis' => 'redis', // 连接组件或它的配置 'channel' => 'queue', // Queue channel key ],
这样就可以了
请问以下yii2 基础版本 怎么安装queue呢,高级版本安装成功了,但是我现在项目用的是基础版本,最后没有init.bat来重置生成 在cmd下 yii后,都没有关于queue的命令
@o燦o 解决了吗?基础版的要在web.php配置文件里面加入
'bootstrap' => ['log', 'queue', 'createuser' ], 'modules' => [ 'game' => [ 'class' => 'app\modules\game\Module', ], ], 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => 'ming', 'parsers' => [ 'application/json' => 'yii\web\JsonParser', ], ], 'queue' => [ 'class' => \yii\queue\redis\Queue::class, 'redis' => 'redis', // 连接组件或它的配置 'channel' => 'queue', // Queue channel key ],
这样就可以了
- landong66 2020-03-04 已签到连续签到1天,获得了5个金钱