problem with cart example in single pages.
Permalink
Hi
I have a custom photography shopping cart that i'm looking to port to concrete5 so i thought i'd dip my toe and try the cart example and i'm getting this at the top of the page. any ideas what i've done wrong please. the page displays correct but tcant stop this output.
thanx
cart = new CartModel(); $this->set('items', $this->cart->get()); } public function add() { $productID = $this->post('productID'); $this->cart->add($productID); $this->set('message', 'Product added successfully.'); } public function remove($productID) { $this->cart->remove($productID); $this->set('message', 'Product removed successfully.'); } } ?>
Warning: Cannot modify header information - headers already sent by (output started at C:\data\websites\photo\controllers\cart.php:28) in C:\data\websites\photo\concrete\libraries\view.php on line 758
I have a custom photography shopping cart that i'm looking to port to concrete5 so i thought i'd dip my toe and try the cart example and i'm getting this at the top of the page. any ideas what i've done wrong please. the page displays correct but tcant stop this output.
thanx
cart = new CartModel(); $this->set('items', $this->cart->get()); } public function add() { $productID = $this->post('productID'); $this->cart->add($productID); $this->set('message', 'Product added successfully.'); } public function remove($productID) { $this->cart->remove($productID); $this->set('message', 'Product removed successfully.'); } } ?>
Warning: Cannot modify header information - headers already sent by (output started at C:\data\websites\photo\controllers\cart.php:28) in C:\data\websites\photo\concrete\libraries\view.php on line 758