소스 검색

[Boutique] Contact : page en maintenance (SPAM)

feature/souke
Guillaume Bourgeois 1 년 전
부모
커밋
e336d7b5e2
2개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. +2
    -2
      producer/controllers/SiteController.php
  2. +3
    -2
      producer/views/site/contact.php

+ 2
- 2
producer/controllers/SiteController.php 파일 보기

$model = new ContactForm(); $model = new ContactForm();
$producer = $this->getProducerCurrent(); $producer = $this->getProducerCurrent();


if ($model->load(\Yii::$app->request->post()) && $model->validate()) {
/*if ($model->load(\Yii::$app->request->post()) && $model->validate()) {
$isSent = false; $isSent = false;
if (is_array($producer->contact)) { if (is_array($producer->contact)) {
$email = $this->getProducerModule()->getMainContactEmail($producer); $email = $this->getProducerModule()->getMainContactEmail($producer);
} }


$model = new ContactForm(); $model = new ContactForm();
}
}*/


return $this->render('contact', [ return $this->render('contact', [
'model' => $model, 'model' => $model,

+ 3
- 2
producer/views/site/contact.php 파일 보기



?> ?>
<div class="site-contact"> <div class="site-contact">
<div class="row">
<div class="alert alert-warning">Page en maintenance</div>
<!--<div class="row">
<div class="col-lg-5"> <div class="col-lg-5">
<?php $form = ActiveForm::begin(['id' => 'contact-form', 'enableClientValidation' => false,]); ?> <?php $form = ActiveForm::begin(['id' => 'contact-form', 'enableClientValidation' => false,]); ?>
<?= $form->field($model, 'name') ?> <?= $form->field($model, 'name') ?>
</div> </div>
<?php ActiveForm::end(); ?> <?php ActiveForm::end(); ?>
</div> </div>
</div>
</div>-->
</div> </div>

Loading…
취소
저장