Commit c1ee8886 authored by Shakarim Sapa's avatar Shakarim Sapa

- Error showing test

parent 8d44fbd3
...@@ -7,7 +7,7 @@ use common\modules\bids\models\Bid; ...@@ -7,7 +7,7 @@ use common\modules\bids\models\Bid;
$userIsSubscribed = false; $userIsSubscribed = false;
$cacheEmail = Yii::$app->cache->get('user_email'); $cacheEmail = Yii::$app->cache->get('user_email');
if ($cacheEmail!==false && Bid::find()->where(['email' => $cacheEmail])->exists()===true) if ($cacheEmail!==false && Bid::find()->where(['email' => $cacheEmail])->exists()===true)
$userIsSubscribed = true; // $userIsSubscribed = true;
?> ?>
<?php if ($userIsSubscribed===false): ?> <?php if ($userIsSubscribed===false): ?>
...@@ -45,6 +45,7 @@ if ($cacheEmail!==false && Bid::find()->where(['email' => $cacheEmail])->exists( ...@@ -45,6 +45,7 @@ if ($cacheEmail!==false && Bid::find()->where(['email' => $cacheEmail])->exists(
])->textInput([ ])->textInput([
'placeholder' => 'E-mail*' 'placeholder' => 'E-mail*'
]); ?> ]); ?>
<?php echo $model->getErrors('email'); ?>
<?php echo Html::submitButton(\Yii::t('form', 'Subscribe'), ['class' => 'save-button']); ?> <?php echo Html::submitButton(\Yii::t('form', 'Subscribe'), ['class' => 'save-button']); ?>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment