Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

yii1 findall as array listData

$array = CHtml::listData(Trips::model()->findAll(), 'trip_id', 'trip_name');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #findall #array #listData
ADD COMMENT
Topic
Name
8+9 =