User Tools

Site Tools


tech2018:s4:edit_account_model

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tech2018:s4:edit_account_model [2018/06/07 10:15]
Gianluca Pelliccioli
tech2018:s4:edit_account_model [2018/06/07 14:15] (current)
Gianluca Pelliccioli
Line 1: Line 1:
 ===== Edit_account_data FORM MODEL ===== ===== Edit_account_data FORM MODEL =====
 +
 +
  
 <code> <code>
Line 13: Line 15:
  if($actvity->payload == null){ //why this condition? This condition is to get data only when the form is yet to be submitted and has to display contents from Database  if($actvity->payload == null){ //why this condition? This condition is to get data only when the form is yet to be submitted and has to display contents from Database
      $payload = new stdClass();      $payload = new stdClass();
 +                    
 +                    //load from database
 +                    //payload->this->db->select()->where("");
 +
 +                    //payload from exiting environment (from get_activity)
      $payload->first_name = $activity->customer->first_name;      $payload->first_name = $activity->customer->first_name;
      $payload->last_name = $activity->customer->last_name;      $payload->last_name = $activity->customer->last_name;
tech2018/s4/edit_account_model.1528366526.txt.gz ยท Last modified: 2018/06/07 10:15 by Gianluca Pelliccioli