Date: 03/29/00
- Next message: nicholas klem: "[PHPLIB] RE: [PHP3] persistent data"
- Previous message: Florian Dittmer: "[PHPLIB] Is there a function to authentificate?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I thought I was doing this right:
Trying to register an object with persistant slots.
My object constructor makes a database call to populate the array stored in
a persistent_slot.
The first time thru the page I get my data (indicating the Project object is
instantiated correctly), the second time thru I'm told that "Project is not
a class in session.inc line 331".
FILE = cls_project.inc
<?php
Class Project {
var $classname = "Project";
var $persistent_slots = array("projectlist");
var $projectlist = array();
/* constructor */
function Project() {
global $db; // pre-defined database object instance
blah, blah database stuff to populate $this->projectlist
} // end constructor
} // end Class Project
?>
FILE = stuff.php3
<?php
....page_open stuff.....
include("./cls_project.inc"); // Project class file
if(!isset($prj)) {
$prj = new Project; // Instantiate a project object
$sess->register("prj");
}
page_close();
?>
Please advise - if this isn't detailed enough I can provide more.
Thanks
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: nicholas klem: "[PHPLIB] RE: [PHP3] persistent data"
- Previous message: Florian Dittmer: "[PHPLIB] Is there a function to authentificate?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

