you've included the class definition at the top of every page, right?
and why don't you just use $_SESSION[cart] directly instead of using
$cart?
that way you don't have to worry about scoping issues and continually
passing $cart through to functions.
Tim
-Original Message-
From: Paul
-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 4:17 AM
To: 'Paul'; [EMAIL PROTECTED]
Subject: [PHP] RE: Problem with Class - incomplete object error
you've included the class definition at the top of every page, right?
and why don't you just use $_SESSION[cart
-Original Message-
From: Paul [mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 11:49
To: 'Tim Ward'; [EMAIL PROTECTED]
Subject: RE: [PHP] RE: Problem with Class - incomplete object error
Yes, I have included class definition on the top of the page.
And are you 100% sure it's
3 matches
Mail list logo