i have a problem with send variable data from function to another function in a same controller orderProcess :
this my controller orderProcess :
function endOrder(){
$datap['invoice_pad'] = $invoice;
$datap['date_end'] = date('d-m-Y');
$datap['total_order'] = $grt;
//$datap i want send to the function controller order()
}
function order(){
//here should be $datap accepted
}