-1
我還沒有使用重定向,但即使我的頁面自動重定向到主頁。控制器頁面:在codeingiter中自動重定向到base_url
//print_r($data);
$orderid = $this->Order_model->insert_order_detail();
if($orderid){
if ($cart = $this->cart->contents()){
foreach ($cart as $item):
$order_detail = array(
'order_id' => $orderid,
'product_id' => $item['id'],
'order_qty' => $item['qty']
);
$order_data = $this->Order_model->insert_order_data($order_detail);
endforeach;
}
}
$enscryptorder = $this->encryption->encrypt($orderid);
redirect('billing/payment_mode');
//-------herer page is redirecting to base not to billing controller