Answers for "yii1 findall as array listData"

PHP
0

yii1 findall as array

echo CHtml::activeDropDownList($model, 'category', CHtml::listData(Category::model()->findAll(), 'id', 'name'));
Posted by: Guest on July-05-2020
0

yii1 findall as array listData

$array = CHtml::listData(Trips::model()->findAll(), 'trip_id', 'trip_name');
Posted by: Guest on July-05-2020

Browse Popular Code Answers by Language