function updateeducation($_post) { $user->id = $this->getuser(); $profile = new Education($user->id); return $profile->update($_post); }
<?php include_once "../../../../../../libraries/aces/models/education.php"; // echo json_encode($filter); $_POST['id'] = $_POST['id']; $_POST['userid'] = $_POST['userid']; $_POST['school'] = $_POST['school']; $_POST['fieldofstudy'] = $_POST['fieldofstudy']; $_POST['dateattendfrom'] = $_POST['dateattendfrom']; $_POST['dateattendto'] = $_POST['dateattendto']; $_POST['degree'] = $_POST['degree']; $_POST['grade'] = $_POST['grade']; $_POST['description'] = $_POST['description']; $edu = new Education(); $data = $edu->update($_POST); echo json_encode($data); // echo json_encode($_POST); // foreach($data as $edudata){ // echo json_encode($edudata); // }
function updateeducation($_post) { $profile = new Education($this->getUser()->id); return $profile->update($_post); }