Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition template of the object you are trying to operate on was loaded before the session was started in 1.php on line 2
ok.. does anyone has an idea about it?
i'm having problems with persistent declaeration of classes.
what I tried according to your reply was
$temp = new template();
session_register("temp");
header("location:1.php?".SESID);
and the 1.php looks like
<?PHP
$temp->title="text";
$temp->js_content="";
$temp->publishStdHeader();
?>
This is how I got that Fatal error.. 🙁