This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tech2018:edit_account_model [2018/05/14 08:02] Adharsh G |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Edit_account_data FORM MODEL ===== | ||
- | |||
- | < | ||
- | <?php | ||
- | if ( ! defined(' | ||
- | |||
- | class Account_changes extends CI_Model | ||
- | { | ||
- | |||
- | // | ||
- | public function fetch_data($id, | ||
- | |||
- | if($actvity-> | ||
- | $payload = new stdClass(); | ||
- | $payload-> | ||
- | $payload-> | ||
- | } | ||
- | //pass activity data and act_data as payload | ||
- | $data = array( | ||
- | " | ||
- | " | ||
- | ); | ||
- | |||
- | return $data; | ||
- | } | ||
- | |||
- | |||
- | //Live data changes | ||
- | //This function is not necessary if you are using a process library as you would be loading it from the controller it self. | ||
- | public function update_accounts($id) | ||
- | { | ||
- | $data = $this-> | ||
- | //insert data | ||
- | $insert_data = array( | ||
- | " | ||
- | " | ||
- | ); | ||
- | |||
- | if($this-> | ||
- | return true; | ||
- | }else{ | ||
- | return false; | ||
- | } | ||
- | |||
- | } | ||
- | |||
- | |||
- | |||
- | } | ||
- | </ | ||
- | |||