Skip to content

Instantly share code, notes, and snippets.

@cozingo
Created February 24, 2017 10:40
Show Gist options
  • Save cozingo/837b0b263d99cc52ebb8545ce650aab4 to your computer and use it in GitHub Desktop.
Save cozingo/837b0b263d99cc52ebb8545ce650aab4 to your computer and use it in GitHub Desktop.
Various form fields in yii2
<?= $form->field($model,'company_id')->hiddenInput(['value' => Yii::$app->user->identity->company_id ]);?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment