I am using yii 2.0 Framework. How can I make parameters from my database. I found this, but this is yii 1.1:
<?php echo CHtml::dropDownList('listname', $select, array('M' => 'Male', 'F' => 'Female'));
I want to pass it to the form:
<?php $form->dropDownList() ?>
How can I populate my dropdownlist from my database table?
yii2 yii-components
pvaitonis
source share