Hi folks, I am trying to use the CGridView widget to list only records with the same foreign key, namely to list all Enrollment Status records belonging to a single Student Record. The result would be the same as if I used the Search button in the admin page, and selected a single student. I’m trying to pass the student_record_id to the actionAdmin() method in the controller like so:
I see now that in the controller’s actionAdmin, $model is used only as a placeholder for the search parameters submitted by _search.php. If there are no parameters, the CActiveDataProvider returns all records.