$id = (int)Yii::$app->request->post('id');
'onchange' => '
$.post(
"'. Url::toRoute('default/ajax') .'",
{id: $(this).val()},
function(data){
$("select#city").html(data).attr("disabled", false)
}
)
'
id: $(this).val()
<option value="222">Харьковская область</option>
public static function getActiveCity()
{
return ArrayHelper::map(self::find()->where(['status' => self::STATUS_ACTIVE])->orderBy('city')->all(), 'id', 'city');
}
public static function getActiveCity()
{
return ArrayHelper::map(self::find()->where(['not',['parent_id' => 0]])->orderBy('city')->all(), 'id', 'city');
}
Для этого Вам нужен ajax.
Проще всего использовать jquery