RE: [PHP] class question 2

From: Date: Wed, 27 Mar 2002 18:46:58 +0000
Subject: RE: [PHP] class question 2
Groups: php.general 
Request: Send a blank email to php-general+get-90400@lists.php.net to get a copy of this message
Objects which are instantiated from classes on one page are not available on the next page. You have to use session functionality. -----Original Message----- From: Caspar Kennerdale [mailto:caspar@thetuckshop.com] Sent: Wednesday, March 27, 2002 8:17 PM To: Php-General-List (E-mail) Subject: [PHP] class question 2 Sorry Another question- Do instances of classes remain in 'communication' with each other if declared my different functions in a case switch statement. At present I have an admin.php which is one long swtich statement. Wihin each is a list iof functions which created the elements of the page Each of these functions are defined in anither file and are instances of classes. If I create an instance of a DB class for exapmle- can I refer to it thoughout the visit to the website- ie does it maintaoin its values and variables even if different functions freom the main index.php page are called sorry if this is really confusing any ideas much appreciated -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#90400) next »