Register here!

Forgot password?

ASK NEW QUESTION

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:

  1. Student
  2. 'internshipHasStudent' => array(self::HAS_ONE, 'InternshipHasStudent', 'student_id'),
  3. 'interests' => array(self::MANY_MANY, 'Interest', 'student_has_interest(student_id, interest_id)'),
  4. 'internship' => array(self::HAS_ONE, 'Internship', 'internship_id', 'through' => 'internshipHasStudent')
  5.  
  6. Internship
  7. 'students' => array(self::HAS_MANY, 'Student', 'student_id', 'through' => 'internship_has_student'),
  8. 'interests' => array(self::MANY_MANY, 'Interest', 'internship_has_interest(internship_id, interest_id)'),
  9. 'internshipHasStudents' => array(self::HAS_MANY, 'InternshipHasStudent', 'internship_id'),
  10. 'organization' => array(self::HAS_ONE, 'Organization', 'organization_id', 'through' => 'contact'),
  11. 'contact' => array(self::BELONGS_TO, 'Contact', 'contact_id'),
Student
'internshipHasStudent' => array(self::HAS_ONE, 'InternshipHasStudent', 'student_id'),
'interests'READ MORE

By giunz in DAO · Asked 492 days 12 hours 2 mins ago

Questions: 1 Accepted: 0 ( 0% ) | Reputation: 0

0 Votes
Solved!

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

By ericrijn in Grid View · Asked 556 days 5 hours 31 mins ago

Questions: 5 Accepted: 0 ( 0% ) | Reputation: 0

© YiiAnswers.com 2011. All rights reserved.

Switch to our mobile site