/** * Updates a particular model. * If update is successful, the browser will be redirected to the 'view' page. * @param integer $id the ID of the model to be updated */ public function actionUpdate() { $modelTipoAccion = new TipoAccion(); $model = $modelTipoAccion->findByPk($_POST['idTipoAccionEditar']); $model->nombre = $_POST['nombreTipoAccionEditar']; $model->save(); $this->redirect(array('default/index')); }