public function updateAction()
 {
     $id = $this->_getParam('id');
     $depart = Application_Model_M_Departments::find($id);
     if ($depart) {
         $this->view->depart = $depart;
     } else {
         $this->redirect('error');
     }
 }
Esempio n. 2
0
 public static function getDepartNameByDID($did)
 {
     $depart = Application_Model_M_Departments::find($did);
     $str = "";
     if ($depart) {
         $str = $depart->getName();
     }
     return $str;
 }