SELECT * FROM `product_img` WHERE `id`='50'
print_r(Yii::$app->request->post());
не выводит Array ( [id] => 50 )
? public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
'delimage' => ['POST'],
],
],
];
}
print_r(Yii::$app->request->get());
возвращает Array ( [id] => 50 )
. <div class="col-md-4" id="product-img-50"> ... </div>
success: function (data)
{
console.log(data);
$("#product-img-" + id).hide();
},
Array
(
[id] => 50
)
<ul>
<li class="breadcrumb-item">
<?= Html::a('Главная', ['site/index']) ?>
</li>
<li class="breadcrumb-item">
<?= Html::a($title, [$route]) ?>
</li>
<li class="breadcrumb-item">
<?php echo $model->name; ?>
</li>
</ul>