public function editTeacherAction()
 {
     $id = $this->getRequest()->getParam("id");
     $db = new Global_Model_DbTable_DbTeacher();
     $row = $db->getTeacherById($id);
     if ($this->getRequest()->isPost()) {
         try {
             $data = $this->getRequest()->getPost();
             $data["id"] = $id;
             $db = new Global_Model_DbTable_DbTeacher();
             $db->updateTeacher($data);
             Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", "/global/index/teacher-list");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("EDIT_FAIL");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $obj = new Global_Form_FrmTeacher();
     $frm_update = $obj->FrmTecher($row);
     $this->view->update_teacher = $frm_update;
     Application_Model_Decorator::removeAllDecorator($frm_update);
 }
 function addteacherAction()
 {
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost();
         $db = new Global_Model_DbTable_DbTeacher();
         $id = $db->addTeacherSubject($data);
         print_r(Zend_Json::encode($id));
         exit;
     }
 }