本文整理匯總了PHP中Application_Model_GlobalClass::getsunjectOption方法的典型用法代碼示例。如果您正苦於以下問題:PHP Application_Model_GlobalClass::getsunjectOption方法的具體用法?PHP Application_Model_GlobalClass::getsunjectOption怎麽用?PHP Application_Model_GlobalClass::getsunjectOption使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Application_Model_GlobalClass
的用法示例。
在下文中一共展示了Application_Model_GlobalClass::getsunjectOption方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: editAction
public function editAction()
{
$id = $this->getRequest()->getParam("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/lecturer");
} catch (Exception $e) {
Application_Form_FrmMessage::message("EDIT_FAIL");
$err = $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($err);
}
}
$db = new Global_Model_DbTable_DbTeacher();
$row = $db->getTeacherById($id);
$tsub = new Global_Form_FrmTeacher();
$frm_techer = $tsub->FrmTecher($row);
Application_Model_Decorator::removeAllDecorator($frm_techer);
$this->view->frm_techer = $frm_techer;
$dbs = new Application_Model_GlobalClass();
$this->view->subject_opt = $dbs->getsunjectOption();
$this->view->teacher_subject = $db->getallSubjectTeacherById($id);
}