rabbitmq->getProducer('producers'); $msg = serialize(['user_id' => rand(111,999)]); $producer->publish($msg, 'ex1', 'route1'); } public function actionShow() { return $this->renderPartial('show'); } }