Master Detail Relationship


I am new to YII framework,

I can know how to display the Master Details View,

such as Department table and Employee table,

I want to provide a dropdown to select the department and according to the department i want to display all the employees in that department in the same screen, How can i do this…?

Thanks in advance.


In the class reference find the CDropDownList and CActiveDropDownList.