Yii Framework Forum: Checkboxlist Throws "array To String Conversion" - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Checkboxlist Throws "array To String Conversion" Rate Topic: -----

#1 User is offline   spyfx 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 29
  • Joined: 14-March 13

Posted 16 January 2014 - 02:13 PM

Im tryin to create a checkBoxList which depends on model data, so i basically added this line to my view
<?php echo $form->checkBoxList($model,'name', CHtml::listData(Places::model()->findAll(),'name','name')); ?> 

and Im gettin an exception like
Array to string conversion

Due to the doc. I just have to provide an string array, so I cant figure out, whats goin on here

Thanks in advance
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users