Reputation: 718
Here is my controller code for displaying..
$this->layout = 'admin-home';
$studios = AccountsStudios::model()->with('generalUserStudiosesCount')->findAll();
#print_r($studios);
$this->render('listStudios', array('studios' => $studios));
Am entirely new to YII... i want to include filter option,search and pagination .
Any good references?
Upvotes: 1
Views: 2500
Reputation: 718
CGridView displays a list of data items in terms of a table.
Each row of the table represents the data of a single data item, and a column usually represents an attribute of the item (some columns may correspond to complex expression of attributes or static text).
CGridView supports both sorting and pagination of the data items. The sorting and pagination can be done in AJAX mode or normal page request. A benefit of using CGridView is that when the user browser disables JavaScript, the sorting and pagination automatically degenerate to normal page requests and are still functioning as expected. CLick Here to get more deatls
Upvotes: 2