⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Doubt about callback_after_update documentation



chocovo
  • profile picture
  • Member

Posted 25 November 2014 - 22:53 PM

Hello,

 

In http://www.grocerycrud.com/documentation/options_functions/callback_after_update,

what is each thing in:

    $this->db->update('user_logs',$user_logs_update,array('user_id' => $primary_key));

What is 'user_logs'?

What is array('user_id' => $primary_key)?

 

Thank you for your answer,

Best regards


Amit Shah
  • profile picture
  • Member

Posted 26 November 2014 - 04:26 AM

the base of grocery crud is codeigniter - will request you to parallely refer to the codeigniter library too for the same. You will understand what each element in the document are.


chocovo
  • profile picture
  • Member

Posted 26 November 2014 - 08:41 AM

'user_logs' is the table where I will insert.

 

array('user_id' => $primary_key) is the array where are all the datas with user_id=$primary_key

 

A short answer sometimes is the best.