Re: [PHP] Problem with Class - incomplete object error

2002-11-18 Thread Marek Kilimajer
As noted in the error, you must declare the class definition _before_ session_start(): require_once('includes/cart.php'); session_start(); methods are not stored within session Paul wrote: Hi All: I have a simple page that checks for existence of object in a session. If the object is not stor

[PHP] Problem with Class - incomplete object error

2002-11-17 Thread Paul
Hi All: I have a simple page that checks for existence of object in a session. If the object is not stored in session object, it creates new one: If (isset ($_SESSION["cart"])) { $cart=$_SESSION["cart"]; } else { $cart = new ShoppingCart ();