[phplib] Object registration as a session variable From: Peter J. (jagodics <email protected>)
Date: 01/09/01

Hello ,

I have a problem with object registration as a session variable.

If I want to make an object from class with parameters and try
to save in session , I'll get an error message on the next page like this :

"Warning: Missing argument in call to classtest() in unit.inc on line ..."

 Example :
---------------------------------------------------
class classtest {

var $classname = "classtest";
var $persistent_slots = array();

function classtest($param1 ,$param2 ) {

................
                                                             };
                       }
.
.
.

$testobject = new classtest("data1","data2");
----------------------------------------------------
I don't need to put $Param1 and $Param2
in the persistent_slots array, do I ? (They are the local variables )
Shall I modify the $classname variable?

                                                                ---- Peter
J. ----

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>