post by musict on Jun 24, 2021

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.

post by panv on Jun 24, 2021

@musict , I think what you need is pretty much self explanatory in the documentation. Obviously you are using GroceryCrud 1.x

Check it out please…

I think (I didn’t try it) you should write your function as :

public function addWorkerDataBeforeUpdate($post_array, $primary_key) {
    // use $primary_key
}
1 / 2
Jun 2021