I am new to yii and php and even the web development. I am creating my first web application with very less knowledge about yii and php.
I want a drop-down list in my form. The data in the drop-down have to be directly retrieved from the database, which I am facing the main problem, as I have not created its model class. Then I want another drop-down list to populate based on the selected value of the former drop-down value. It is like select state then on the basis of state value city value have to be populated.
Please help me with it. And if possible please explain in detail.