public function GetProviderData($id) { $model = new EditingProviderModel(); $model->Init($id); $curProData = json_encode($model->curPro); echo $curProData; }
public function EditProvider() { $id = $this->input->post('proId', true); $code = $this->input->post('proCode', true); $name = $this->input->post('proName', true); $logoUrl = $this->input->post('proLogoUrl', true); $descript = $this->input->post('proDescription', true); $editingProvider = new EditingProviderModel(); $result = $editingProvider->Update2Db($id, $code, $name, $logoUrl, $descript); echo $result; }