public function updatespecificationAction()
 {
     global $mySession;
     $db = new Db();
     $specId = $this->getRequest()->getParam('specId');
     $this->view->specId = $specId;
     $this->view->pageHeading = "Edit Property Specification";
     if ($this->getRequest()->isPost()) {
         $request = $this->getRequest();
         $myform = new Form_Specification($specId);
         if ($myform->isValid($request->getPost())) {
             $dataForm = $myform->getValues();
             $myObj = new Specification();
             //prd($dataForm);
             $Result = $myObj->saveSpecification($dataForm, $specId);
             if ($Result == 1) {
                 $mySession->sucessMsg = "Specification updated successfully.";
                 $this->_redirect('property/specification');
             } else {
                 $mySession->errorMsg = "This Specification you entered is already exists.";
                 $this->view->myform = $myform;
                 $this->render('editspecification');
             }
         } else {
             //$dataForm = $myform->getValues();
             //prd($dataForm);
             $this->view->myform = $myform;
             $this->render('editspecification');
         }
     } else {
         $this->_redirect('property/editspecification/specId/' . $specId);
     }
 }