List Inside Cdetailview

Hello, does anybody knows how to add a list inside CDetailView extension?

My model relations:

public function relations()

	{return array('publishers' => array(self::MANY_MANY, 'Publisher', 'bookpublisher(book_id, publisher_id)'))},

How can i include list of "publishers" in CDetailView?

$this->widget('zii.widgets.CDetailView', array(






Code above will return an error "htmlspecialchars() expects parameter 1 to be string, array given"

Any thoughts on what would be the proper way of achieving this?

Thank you.

Try ‘label’=>‘Publishers’ instead of ‘name’=>‘Publishers’. ‘name’ is reserved for an actual attribute and ‘Publishers’ doesn’t look like one. Good luck.