I have 2 web servers with 2 versions of PHP running on Windows.
My XAMPP uses Apache and PHP 5.3.1 and the code (as of video #7) has this same error.
My IIS uses PHP 5.3.3 and the code runs fine. I found this out after wasting some a day. But now that I have a working version, I'm happy again.
Ok - now the "Fatal error: Call to a member function AddItem() on a non-object..." does not show.
But the cart contents don't show either.
I tried this using IE and Firefox. Same deal.
Looking at the web page source seems to indicate that the rendering stops when any function from ShoppingCart.php is called.
I replaced "$this->items" with "$items" but this does not seem to change results.
I will keep trying, but if you guys have any clue, this would be appreciated.
I assume you have the code that comes with the video purchase. I can upload my own if you need them.
tks
Marcel