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!
Basic grid view:
You'll need to pass the data provider from the controller: