public function addAction()
 {
     $auth = Zend_Auth::getInstance();
     if ($auth->hasIdentity()) {
         $loginUserId = $auth->getStorage()->read()->id;
         $loginuserGroup = $auth->getStorage()->read()->group_id;
     }
     $empconfigurationform = new Default_Form_empconfiguration();
     $empconfigurationform->setAttrib('action', DOMAIN . 'empconfiguration/add');
     if ($loginuserGroup == '') {
         $checkTypeArray = array_keys($this->empConfigureArray);
     }
     if (!empty($checkTypeArray)) {
         $empconfigurationform->setDefaults(array('checktype' => $checkTypeArray));
         $empconfigurationform->setDefault('checkall', 1);
     }
     $this->view->form = $empconfigurationform;
     $this->view->succesmsg = $this->_helper->flashMessenger->getMessages();
     if ($this->_request->getPost()) {
         if ($empconfigurationform->isValid($this->_request->getPost())) {
             $checktype = $this->_request->getParam('checktype');
             $emptab = sapp_Global::generateEmpTabConstants($checktype);
             $this->_helper->getHelper("FlashMessenger")->addMessage($emptab);
             $this->_redirect('empconfiguration');
         } else {
             $messages = $empconfigurationform->getMessages();
             foreach ($messages as $key => $val) {
                 foreach ($val as $key2 => $val2) {
                     $msgarray[$key] = $val2;
                     break;
                 }
             }
             $this->view->msgarray = $msgarray;
         }
     }
 }