<?php public function actionUpdate($id) { $didLoad = false; $model = $this->findModel($id); // var_dump($model->title); $didLoad = true; if ($model->load(Yii::$app->request->post()) && $model->save()) { var_dump($didLoad); return $this->redirect(['index', 'id' => $model->id]); } return $this->render('update', [ 'model' => $model, ]); }
You have javascript disabled. You will not be able to edit any code.