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

 
andrew replied on at Permalink Reply
andrew
Do you have PHP short tags enabled? If not, you should probably replace every instance of <? with <?php
peteswat replied on at Permalink Reply
thanks for your reply. absolutely right. i should have thought of that.
thanx