displaying Cgridview in yii
问题 how can i display a record in Cgridview? tbl_book: id title author tbl_in_out: id book_id date_out date_in I have created a relationship that the book_id in tbl_in_out belongs to id in tbl_book. what i want to do is to query a record in the tbl_in_out with the corresponding data in tbl_book and display it in the CGridview(sorry for the bad english). Please help! 回答1: Basic grid view: // the following code goes in your view $this->widget('zii.widgets.grid.CGridView', array( 'dataProvider'=>