i have created two dropdowns in my view and i passed the values from view itself and not from database.now if i need to populate the value of one dropdown by selecting a value in other dropdown what names of dropdowns should we write in controller defined function. please help me

Your question is a bit confusing but I guess that you are trying to create dependent dropdown lists. There are tons of posts regarding that problem:




And this: http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown ;)

i am trying to create a dropdown with values passed from my view itself and not from database.I shouldnt give $model as my first parameter in syntax of dropdown.can anyone provide me the syntax of dropdown without using ARmodel.