/**
  * 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($id)
 {
     $model = $this->loadModel($id);
     if ($model == null) {
         $model = new Specification();
         $model->setIsNewRecord(true);
     }
     //var_dump($model);die();
     // Uncomment the following line if AJAX validation is needed
     // $this->performAjaxValidation($model);
     //echo "string"; die();
     if (isset($_POST['Specification'])) {
         $model->attributes = $_POST['Specification'];
         if ($model->save()) {
             echo "saved";
             $this->render('success');
         }
     }
     $this->render('update', array('model' => $model));
 }