Hello. First of all, thanks to the author for Grocery CRUD. Please tell me how to get the primary key after calling the callback_before_update function. I use Codeigniter 3.
@musict , I think what you need is pretty much self explanatory in the documentation. Obviously you are using GroceryCrud 1.x
I think (I didn’t try it) you should write your function as :
public function addWorkerDataBeforeUpdate($post_array, $primary_key) {
// use $primary_key
}