Yii Framework Forum: Cgridview - Yii Framework Forum

Jump to content

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

Cgridview queryBuilder and CGridView Rate Topic: -----

#1 User is offline   bardoo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 17
  • Joined: 30-January 13

Posted 30 January 2013 - 10:58 AM

Hi,
I'm a new be in Yii,
i have a problem : i want to know how to view data from queryBuilder in a CGridView?
thanks
HOPE IS A GOOD THING, MAYBE THE BEST THINGS, AND NO GOOD THING EVER DIES.
0

#2 User is offline   yiqing95 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 602
  • Joined: 27-December 10
  • Location:china

Posted 30 January 2013 - 11:27 AM

firstly to get the sql :CDbCommand:getText then init a CSqlDataProvider using the sql , later the dataProvider can be used by CGridView
1

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