|
|
|
|
|
|
|
|
throw new NotFoundHttpException('Le document n\'a pas été trouvé.'); |
|
|
throw new NotFoundHttpException('Le document n\'a pas été trouvé.'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if ($model->isStatusValid()) { |
|
|
|
|
|
return $this->redirect(['download', 'id' => $id]) ; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($model && $model->load(Yii::$app->request->post()) && $model->save()) { |
|
|
if ($model && $model->load(Yii::$app->request->post()) && $model->save()) { |
|
|
Yii::$app->getSession()->setFlash('success', $this->getFlashMessage('update', $model)); |
|
|
Yii::$app->getSession()->setFlash('success', $this->getFlashMessage('update', $model)); |
|
|
} |
|
|
} |