Difference between #10 and #11 of
Creating a dependent dropdown

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',
[...]
83 2
92 followers
Viewed: 416 813 times
Version: 1.1
Category: Tutorials
Written by: dalip
Last updated by: Paul_Kish
Created on: Mar 23, 2009
Last updated: 9 years ago
Update Article

Revisions

View all history