I know this is unusual but I want either a cgridview that is unique to each record or an alternative way of doing the thing that I want...
I have a cgridview which displays a list of patients
when the view button is clicked it would go the view page... My view page has an operation on the sidebar called "Display Patient Records of this Patient" and I wanted it to redirect to another cgridview from another model.
The problem now is the cgridView displays all of the patient records instead of just the record of the patient, the user viewed.
Is there a way to get the id of the recently viewed patient record so I can come up with a new dataProvider for this?
take note that I need the id of the recently viewed patient, not the id of the user logged in so I can't just use
Yii::app()->user->id;
I would appreciate any help or another alternative of achieving this...