Cactivedataprovider Getdata() Select Columns?


public function search($consultsales, $consult) {

		$criteria = new CDbCriteria ();

		$criteria->with = array (

				'consult' => array (

						'select' => 'consult.columnA,consult.columnB,consult.columnC' 

				) 

		);

		$criteria->select = array('customerid','id');

                $dataProvider = new CActiveDataProvider ( get_class ( $this ), array (

				'criteria' => $criteria 

		) );

		return $dataProvider;

}



在$dataProvider->getData()中怎么读取到所查询的这些列columnA,columnB,columnC,customerid,id

Please use <> (you code has to be inside [ code][ /code]-tags) in the forum editor for posting code and specifiy what you want to achive and where you have problems.