Hi All,
How to call other model_function in callback_before_insert?
I have try to make custom_model but it does not work.
Here my code;
$crud->callback_before_insert(array($this,'callback_section_insert'));
function callback_section_insert ($post_array) {
$order = //calling function in model to get last order_value;
$order++;
$post_array['order_value] = $order ;
return $post_array;
}
Do you have any idea how to solve this? thank you in advance.