php - search field with comma separted values in model for yii -


i have 2 tbles

1.users(userid,username) 2.movie(movieid,moviename,viewerid) 

i new yii,want display gridview search.

i have table movie ,in viewerid filed contain id of users 1,2,3

another table users having userid,username corresponding this.

i have serach inside grid view of model 'movie' viewers using name.

please me find solution

this article should you. http://www.yiiframework.com/wiki/281/searching-and-sorting-by-related-model-in-cgridview


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -