Home Page » dataprovider
Questions tagged as "dataprovider"
0
Votes
Create a complex dataprovider for a DataPicker
cactivedataproviderCDbCriteriaCGridViewData Pickerdataprovider
I am trying to implement the datapicker in a student update form. Following are the models I want to use in this form:
- Student
- 'internshipHasStudent' => array(self::HAS_ONE, 'InternshipHasStudent', 'student_id'),
- 'interests' => array(self::MANY_MANY, 'Interest', 'student_has_interest(student_id, interest_id)'),
- 'internship' => array(self::HAS_ONE, 'Internship', 'internship_id', 'through' => 'internshipHasStudent')
- Internship
- 'students' => array(self::HAS_MANY, 'Student', 'student_id', 'through' => 'internship_has_student'),
- 'interests' => array(self::MANY_MANY, 'Interest', 'internship_has_interest(internship_id, interest_id)'),
- 'internshipHasStudents' => array(self::HAS_MANY, 'InternshipHasStudent', 'internship_id'),
- 'organization' => array(self::HAS_ONE, 'Organization', 'organization_id', 'through' => 'contact'),
- 'contact' => array(self::BELONGS_TO, 'Contact', 'contact_id'),
Student 'internshipHasStudent' => array(self::HAS_ONE, 'InternshipHasStudent', 'student_id'), 'interests'READ MORE
Access active row using CGridView with custom dataprovider
active rowCGridViewdataprovider
Hi all,
I’m having soms problems with the use of my own dataprovider. I created one for a relation of the model, using CArrayDataProvider (data provided by a sql-query), but IREAD MORE
