|
|
@@ -181,7 +181,7 @@ class SiteController extends ProducerBaseController |
|
|
|
$model = new ContactForm(); |
|
|
|
$producer = $this->getProducerCurrent(); |
|
|
|
|
|
|
|
if ($model->load(\Yii::$app->request->post()) && $model->validate()) { |
|
|
|
/*if ($model->load(\Yii::$app->request->post()) && $model->validate()) { |
|
|
|
$isSent = false; |
|
|
|
if (is_array($producer->contact)) { |
|
|
|
$email = $this->getProducerModule()->getMainContactEmail($producer); |
|
|
@@ -197,7 +197,7 @@ class SiteController extends ProducerBaseController |
|
|
|
} |
|
|
|
|
|
|
|
$model = new ContactForm(); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
return $this->render('contact', [ |
|
|
|
'model' => $model, |