public function init() { parent::init(); echo \yii\helpers\Html::hiddenInput("sx-model-value", $this->modelWithProperties->id); echo \yii\helpers\Html::hiddenInput("sx-model", $this->modelWithProperties->className()); }