public function editspclpptyAction() { global $mySession; $db = new Db(); $this->view->pageHeading = "Edit Special Property"; $lId = $this->getRequest()->getParam("lId"); $myform = new Form_Slides('2', $lId); $this->view->myform = $myform; if ($this->getRequest()->isPost()) { $request = $this->getRequest(); if ($myform->isValid($request->getPost())) { $dataForm = $myform->getValues(); $myObj = new Slides(); $Result = $myObj->saveSlides($dataForm, 2, $lId); if ($Result > 0) { $mySession->sucessMsg = "Speical Property Modified successfully."; $this->_redirect('slides/spclppty'); } else { $mySession->errorMsg = "An Error Occurred while trying to save the data"; } } } }