Created
June 13, 2014 13:47
-
-
Save DrMabuse23/5719cda45ee56e69b85f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?= $form->field($model, 'category_id')->widget(\kartik\widgets\Select2::classname(), [ | |
'options' => ['placeholder' => Yii::t('app','Choose')], | |
'data' => \yii\helpers\ArrayHelper::map(\common\models\Category::find()->all(),'id','title') | |
]);?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment