View Records In Gridview Using Relation Table

Hi Everyone,

I have three tables like this

User

=====

id—pk

username

password

email

user_package

============

id—pk

userid–fk

packageid—fk

package

========

id—pk

packagename

now I need view data in gridview in User Admin page with user package…

can anyone help me…

The Searching and sorting by related model in CGridView wiki should lead you in the right direction.