Код: Выделить всё
http://mysite.com/web/index.php/controller/action?1%5Bid%5D=1
p.s.: в дебагере вижу что гет я принимаю
p.s.s.: как сделать обновление страницы со сбросом поста?
Код: Выделить всё
http://mysite.com/web/index.php/controller/action?1%5Bid%5D=1
Код: Выделить всё
<?= Html::a('action', ['controller/action', ['id' => $id]], ['class' => 'btn btn-default']) ?>
Код: Выделить всё
<?= Html::a('action', ['controller/action', 'id' => $id], ['class' => 'btn btn-default']) ?>
Код: Выделить всё
http://mysite.com/web/index.php/controller/action?id=1
Код: Выделить всё
if (isset($_POST['check'])){
return $this->render('form',[
'othermodel' => $othermodel,
]);
}
elseif (isset($post['view'])) {
$model->insert();
return $this->render('view',[
'value' => $values,
]);
}
}