This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tech2018:s4:get_activity [2018/06/07 10:11] Gianluca Pelliccioli |
tech2018:s4:get_activity [2018/06/07 13:19] (current) Gianluca Pelliccioli |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Get_activity ======= | + | ====== Get_activity |
< | < | ||
http:// | http:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | This is based on the controller: | ||
+ | |||
+ | **/ | ||
+ | < | ||
+ | public function get_activity($id) { | ||
+ | $activity = $this-> | ||
+ | |||
+ | $company = $this-> | ||
+ | $statuses = $this-> | ||
+ | $customer = $this-> | ||
+ | |||
+ | $activity-> | ||
+ | $activity-> | ||
+ | $this-> | ||
+ | $activity-> | ||
+ | $activity-> | ||
+ | $activity-> | ||
+ | $activity-> | ||
+ | $activity-> | ||
+ | $activity-> | ||
+ | |||
+ | // CHANGE FORM DATA BASED ON FORM/ | ||
+ | $this-> | ||
+ | |||
+ | if ($id != null && isset ( $activity-> | ||
+ | $activity_lib_data = $this-> | ||
+ | $activity = $activity_lib_data; | ||
+ | } | ||
+ | |||
+ | $this-> | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | ##Verify Adharsh | ||
+ | The get_activities is filling the array $activity which is giving huge flexibility in the view rendering. | ||
+ | |||
+ | < | ||
+ | $reclamo = ""; | ||
+ | $pending = ""; | ||
+ | if($activity-> | ||
+ | if($activity-> | ||
+ | "< | ||
</ | </ | ||
[[tech2018: | [[tech2018: |