public function actionUpdate($id) { $model = $this->loadModel($id); $form = new BaseForm('docs.DocumentationForm', $model); $this->performAjaxValidation($model); if ($form->submitted() && $model->save()) { $this->redirect($model->manageUrl); } $this->render('update', array('form' => $form)); }