public function updatesizeAction()
 {
     global $mySession;
     $db = new Db();
     $sno = $this->getRequest()->getParam('sno');
     $this->view->sno = $sno;
     $this->view->pageHeading = "Edit Size";
     if ($this->getRequest()->isPost()) {
         $request = $this->getRequest();
         $myform = new Form_Size($sno);
         if ($myform->isValid($request->getPost())) {
             $dataForm = $myform->getValues();
             $sizeModel = new Size();
             $Result = $sizeModel->saveSize($dataForm, $sno);
             if ($Result == 1) {
                 $mySession->errorMsg = "Details updated successfully.";
                 $this->_redirect('tshirt/size');
             } else {
                 //$mySession->errorMsg ="Page name you entered is already exists.";
                 $this->view->myform = $myform;
                 $this->render('editsize');
             }
         } else {
             $this->view->myform = $myform;
             $this->render('editsize');
         }
     } else {
         $this->_redirect('tshirt/editsize/sno/' . $sno);
     }
 }