Depending activedropdownlist


I’m new to yii and I need to now how to create a dependent activedropdownlist I have counties and cities in database and I need to filter the cities dropdown depending on selected country.

can you please show me the code? I have tried a lot of code from this forum and the cookbook and never reach my goal :(

Check this post…

I did but it’s not working :S

thanks for your reply