public function cateupdateAction() { $id = $this->_getParam('id'); $cate = Application_Model_M_DepartmentsCategory::find($id); if ($cate) { $this->view->cate = $cate; } else { $this->redirect('error'); } }
public static function getCategoryNameByCID($cid) { $departcate = Application_Model_M_DepartmentsCategory::find($cid); $str = ""; if ($departcate) { $str = $departcate->getName(); } return $str; }