/**
  * @inheritdoc
  */
 public function run()
 {
     if (\Yii::$app->request->isAjax) {
         $pk = $_POST['pk'];
         $name = $_POST['name'];
         $value = $_POST['value'];
         $modelclass = $this->modelclass;
         $model = $modelclass::findOne($pk);
         if ($this->scenario) {
             $model->setScenario($this->scenario);
         }
         XEditable::saveAction(['name' => $name, 'value' => $value, 'model' => $model]);
     }
 }
 /**
  * @see Xeditable
  * @see Init extension default
  */
 public function init()
 {
     parent::init();
     $this->registerAssets();
 }