Yii Framework Forum: Many to many relation in zii.widgets.grid.CGridView and filter them - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Many to many relation in zii.widgets.grid.CGridView and filter them Rate Topic: -----

#1 User is offline   r0n9.GOL 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 21-August 09

Posted 29 July 2010 - 12:28 AM

I have a problem

I have relation many to many
array(self::MANY_MANY,'Category','SubscriberCategory(subscriber_id, category_id)'),

I need to show them like this News, Press in column Category and filter them how can I do this ? Thanks
1

#2 User is offline   ariefpriyadi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 27
  • Joined: 08-June 10
  • Location:Kenjeran-Surabaya

Posted 06 September 2010 - 12:39 AM

View Postr0n9.GOL, on 29 July 2010 - 12:28 AM, said:

I have a problem

I have relation many to many
array(self::MANY_MANY,'Category','SubscriberCategory(subscriber_id, category_id)'),

I need to show them like this News, Press in column Category and filter them how can I do this ? Thanks


change to HAS_ONE .. it will show to CGridview
arief.kenjeran.net
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users