/** * 故事评价:用鲜花或鸡蛋表达 */ public function appraise() { $id = (int) $this->input->get('id'); $type = (int) $this->input->get('type'); $return = $this->_modelStory->appraise($id, $type); CAjax::result($return); }
/** * 注册院校专业 */ protected function regMajor() { if (REQUEST_METHOD == 'POST') { $academy = $this->input->post('academy', true); $major = $this->input->post('major', true); $this->setSession('academy', $academy); $this->setSession('major', $major); //保存注册 $return = $this->regSave(); CAjax::result($return); } else { CView::show('register/reg_gender'); } }