public function actionUpdateimage($path, $item_id)
 {
     $itemDetailsModel = new ItemDetails();
     if ($itemDetailsModel->load(Yii::$app->request->post()) && isset($itemDetailsModel->img->extension)) {
         $itemDetailsModel->img = UploadedFile::getInstance($itemDetailsModel, 'img');
         $itemDetailsModel->img->saveAs($path);
     }
     $this->redirect('index.php?r=item/default/updateitem&itemId=' . $item_id);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getItemDetails()
 {
     return $this->hasMany(ItemDetails::className(), ['item_id' => 'item_id']);
 }