Array of Objects in session, is it possible to access member functions?
From: college (collegeguys4_at_yahoo.com)
Date: 07/28/04
- Next message: Phil Roberts: "Re: Array of Objects in session, is it possible to access member functions?"
- Previous message: Garp: "Re: PHP doesn't shows nothing instead of errors"
- Next in thread: Phil Roberts: "Re: Array of Objects in session, is it possible to access member functions?"
- Reply: Phil Roberts: "Re: Array of Objects in session, is it possible to access member functions?"
- Reply: rush: "Re: Array of Objects in session, is it possible to access member functions?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jul 2004 14:05:39 -0700
I am trying to pass an array of user objects in session and take the
array out of session and call the member functions of each object.
However I am getting a Fatal error: Call to a member function on a
non-object. I have session.autostart turned off, and I have the
class definition for those objects included before the call to
session_start(). I am on PHP 4.2.3. Is this possible to do? While
debugging, it appears that the objects in the array are only seen as a
type of standard "object", and that I can only access the member
variables of the object. I tried casting to the user defined class,
but this does not see to work. Is there a way to pull these objects
out of an array that was in the session, and call the member functions
of these objects?
- Next message: Phil Roberts: "Re: Array of Objects in session, is it possible to access member functions?"
- Previous message: Garp: "Re: PHP doesn't shows nothing instead of errors"
- Next in thread: Phil Roberts: "Re: Array of Objects in session, is it possible to access member functions?"
- Reply: Phil Roberts: "Re: Array of Objects in session, is it possible to access member functions?"
- Reply: rush: "Re: Array of Objects in session, is it possible to access member functions?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|