by
91 6
1
4
2,450
1
Top 1% !
Famous
Tagged
Specified
Popularity: 7225th place
This snippet is Public
yii
FrameworkYii
Languagehtml+php
LicenseMIT_X11

Hidden filed - old style

Так лучше уже не делать, поскольку для невидимых полей не нужны обвязки форма для валидации введенных данных и прочее
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1157364/Hidden-filed---old-style?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
$form->field($cart, 'Goods_idGoods', ['value' => 'test'])->hiddenInput()->label(false) //нужно длеать вот так <?= Html::activeHiddenInput($cart, 'Goods_idGoods', ['value' => $model->idGoods])?>
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus