Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Help With The Searching

$
0
0
I have 3 tables like this:
User: id
Skill: id
UserSkill: id, user_id, skill_id

So UserSkill table links User and Skill table together with the relationship: User can has many Skills. It means User has many UserSkill and Skill has many UserSkill.
I would like to do something like: when I view User id=2, it must display the user detail of course, and list all the skills that link to this user. I dont know how to do it. Please so me the solution for both controller and view. Thanks :)

Viewing all articles
Browse latest Browse all 18717

Trending Articles