I have RTFM and TTFE and still am having a heck of a time getting my
objects to play well between pages
The only real examples are in the notes for classes objects
http://us2.php.net/manual/en/language.oop.php
Basic usage
?
include_once(config.inc);
include_once(class.php);
$songbook = new
David OBrien wrote:
I have RTFM and TTFE and still am having a heck of a time getting my
objects to play well between pages
The only real examples are in the notes for classes objects
http://us2.php.net/manual/en/language.oop.php
(are you on php4 or php5 btw?)
Basic usage
?
I create a new object and then assign it to a session var
$customer = new Customer($_GET['facilityID'], $_GET['customerID']);
$_SESSION['acceptPayment']['customer'] = $customer;
but later when I access that session var [in the the same file but in a different function and different instance], php
il at http://www.smackdown.com/
On Thu, 22 Feb 2001, Kevin Beckford wrote:
Date: Thu, 22 Feb 2001 12:36:29 -0500
From: Kevin Beckford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] sessions and objects
Hello all,
I've been away from php for a while, ( and I'm glad to be back) Last
time
://www.calevans.com
-Original Message-
From: jeremy brand [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 11:46 AM
To: Kevin Beckford
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] sessions and objects
Don't store your object in the session, that is just bad design.
Store a lookup value
If I save an object as a session var. will I still have access to its
methods.
Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
6 matches
Mail list logo