/**
  * 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()
 {
     $modelDimension = new Dimension();
     $model = $modelDimension->findByPk($_POST['idDimensionEditar']);
     $model->nombre = $_POST['nombreDimensionEdit'];
     $model->id_empresa = $_POST['idEmpresaDimensionEditar'];
     $model->save();
     $this->redirect(array('default/index'));
 }