SyntaxFix
Write A Post
Hire A Developer
Questions
You can do it with the options
echo $form->field($model, 'hidden1', ['options' => ['value'=> 'your value'] ])->hiddenInput()->label(false);