![]() |
$this->cart->contents() is empty. when ever i try to call function from Postman - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: $this->cart->contents() is empty. when ever i try to call function from Postman (/showthread.php?tid=71505) |
$this->cart->contents() is empty. when ever i try to call function from Postman - ktmonty - 08-21-2018 Hi, I am trying to show cart items. but when ever i try to call function from Postman (http://www.xyz.com/Order/OrderSuccess) is shows empty array and if i call same function in browser(http://www.xyz.com/Order/OrderSuccess) it shows array of items. public function OrderSuccess() { $cart =$this->cart->contents(); echo json_encode($cart); } RE: $this->cart->contents() is empty. when ever i try to call function from Postman - jreklund - 08-21-2018 Postman dosen't share the same session as your browser. So if you don't add any before trying to show them. It will be empty. |