Jump to content


Member Since 19 Sep 2013
Offline Last Active Private

Posts I've Made

In Topic: callback_after_update + condition + $post_array

30 September 2013 - 11:48 PM

I have found a way of doing it but i need to query db on each update and this add some execution time.

Any other way to store the content of Date_Deb in a variable before evaluating it ?

function update_date_debriefe($post_array,$primary_key)
                     ->where('ID', $primary_key);
            $db = $this->db->get();
            $row = $db->row(0);
            $DD = $row->Date_Deb;

if((empty($DD)) && ($post_array['Etat'] == '3'))  {
    $date_debriefe = array("ID" => $primary_key,"Date_Deb" => date('2017-01-10'));
    $this->db->update('t3',$date_debriefe,array('ID' => $primary_key));
   return $post_array;

In Topic: Change row color based on value

30 September 2013 - 10:55 PM

Thank you @davidoster. I can see how to use callback but not dealing with the color rendering as im having another problem right now : http://www.grocerycr...ion-post-array/