Revision #11                                    has been created by 
 fsb                                    on Jun 25, 2012, 6:28:07 PM with the memo:
                                
                                
                                    Undid imdad's change, change #9 abotu multi-dimensional inoput                                
                                                                    « previous (#10)                                                                                                    next (#12) »                                                            
                            Changes
                            
    Title
    unchanged
    Creating a dependent dropdown
    Category
    unchanged
    Tutorials
    Yii version
    unchanged
    
    Tags
    unchanged
    AJAX
    Content
    changed
    [...]
```php
public function actionDynamiccities()
{
//please enter current controller name because yii send multi dim array 
 
    $data=Location::model()->findAll('parent_id=:parent_id', 
		          array(':parent_id'=>(int) $_POST['
Current-Controller']['country_id']));
    
    $data=CHtml::listData($data,'id','name');
    foreach($data as $value=>$name)
    {
        echo CHtml::tag('option',[...]