Commit b12b3722 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлено выведение формы согласно записям в таблице bid

parent de061f74
......@@ -6,7 +6,7 @@ use yii\web\JsExpression;
use common\modules\bids\models\Bid;
$userIsSubscribed = false;
$cacheEmail = Yii::$app->cache->get('user_email');
if ($cacheEmail!==false && Bid::find()->where(['email' => $cacheEmail])->exists()===true)
if ($cacheEmail!==false && \common\modules\blog\models\BlogBids::find()->where(['email' => $cacheEmail])->exists()===true)
$userIsSubscribed = true;
?>
......@@ -21,7 +21,7 @@ if ($cacheEmail!==false && Bid::find()->where(['email' => $cacheEmail])->exists(
$model->form = Bid::FORM_SUBSCRIBE;
$form = ActiveForm::begin([
'action' => '/bids/bid/blogadd',
'action' => '/blog/blog-bid/add',
'enableClientValidation' => false,
'options' => [
'class' => 'subsc_blog_form bids-form',
......
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