How To Transfer Variables To Clistview's _Item

Can I transfer variables to a clistview’s _item? Please see my codes below


public function actionIndex() {

	$ask = new Ask;

	$dataProvider = new CActiveDataProvider('Answer');

	$this->render('index', array(

		'ask' => $ask,// this the variable that I want to transfer

		'dataProvider' => $dataProvider,




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



	//here I need to transfer $ask to the _view.php


it seems viewData will do. i am trying…

yeah it works :)

hope this helps others as well