public function post_recruitment() { $data = Input::json(); if ($data == null) { $this->template->__yield__ = View::forge('pages/recruitment', array()); } else { if ($data['action'] == 'save') { $response['Code'] = Recruitment::update_content($data); if ($response['Code'] == 1) { $response['Msg'] = 'Update success'; } else { $response['Msg'] = 'Update fail'; } return json_encode($response); } } }
public function post_fetch() { $reqObj = Input::json(); }