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

From: Date: Mon, 18 Nov 2002 14:33:57 +0000
Subject: RE: [PHP] RE: Problem with Class - incomplete object error
Groups: php.general 
Request: Send a blank email to php-general+get-124912@lists.php.net to get a copy of this message
> -----Original Message----- > From: Paul [mailto:pax@cfl.rr.com] > Sent: 18 November 2002 11:49 > To: 'Tim Ward'; php-general@lists.php.net > 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 before your session_start()? > > The reason that was using $cart is the fact that I was calling > methods/functions of the object such as $cart->AddItem()..and > I was not > sure whether $_Session['cart']->AddItem would be a correct way or not Well, no, but $_SESSION['cart']->AddItem would...;)! Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#124912) next »