$this->redirect(Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/producer-offline','id' => $producer->id])) ; | $this->redirect(Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/producer-offline','id' => $producer->id])) ; | ||||
} | } | ||||
if(!$userProducer) { | |||||
Producer::addUser(User::getCurrentId(), $producer->id, 0) ; | |||||
} | |||||
return parent::beforeAction($event); | return parent::beforeAction($event); | ||||
} | } | ||||