public function actionIndex() { $model = Logo::find()->orderBy('id')->one(); if ($model === null) { $model = new Logo(); } if ($model->load(Yii::$app->request->post()) && $model->save()) { } return $this->render('update', ['model' => $model]); }