Assume that you have teachers and students model.
Assume that you have teachers and students model.
Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework
Suppose you have an Application in Yii that manages hotels each one has many customers.
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)
There are cases you want to update a record on CGridview directly
CGridview displays existent rows of the table (using DataProvider)
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)
The problem is not new: after setting some filters in a grid (typically in admin view), and gone to another page, returning in the grid's page I would like to find the filters with previous setting mantained.
Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.