saving additional data
- Single Page
Posted 08 October 2012 - 09:59 PM
I just don't know how to save additional fields data that don't need a form input .
example:
I have a function to save created_at and updated_at dates, how do i call it then insert it on db?
i tried this with no success :
$crud->field_type('created_at','invisible',date('Y-m-d H:i:s'));
how do i save $_SESSION['user_id'] or any $_SESSION variable??
thanks in advance
Posted 09 October 2012 - 05:11 PM
https://www.grocerycrud.com/v1.x/documentation/options_functions/callback_before_insert
https://www.grocerycrud.com/v1.x/documentation/options_functions/callback_before_update
Posted 09 October 2012 - 07:07 PM
