/** * 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() { $modelTipoCausa = new TipoCausa(); $model = $modelTipoCausa->findByPk($_POST['idTipoCausaEditar']); $model->nombre = $_POST['nombreTipoCausaEditar']; $model->save(); $this->redirect(array('default/index')); }