Htmlspecialchars() Expects Parameter 1 To Be String, Object Given

Hi guys,

Beep on Error :htmlspecialchars() expects parameter 1 to be string, object given




<?=Html::activeDropDownList($model, "trade", $Item['trade'], ['empty'=>'城市',

                    'ajax'=>[

                    'type'=>'GET',

                    'url'=>  Yii::$app->urlManager->createUrl('area/getArea'),

                    'update'=>'#AdminShop_areaid',

                    'data'=>array('mid'=>"js:this.value",'typeid'=>1),

                ]])?>



How can I solve?

You have added ‘ajax’ array to HTML options which does not exist.