Date: 01/09/01
- Next message: Mark Heintz PHP Mailing Lists: "[phplib] template: / in varname"
- Previous message: Brian Popp: "RE: [phplib] Trying use teh knowledge base app from "Web Applicat ion Development with PHP 4.0""
- Next in thread: Max A. Derkachev: "Re: [phplib] Object registration as a session variable"
- Reply: Max A. Derkachev: "Re: [phplib] Object registration as a session variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Mark Heintz PHP Mailing Lists: "[phplib] template: / in varname"
- Previous message: Brian Popp: "RE: [phplib] Trying use teh knowledge base app from "Web Applicat ion Development with PHP 4.0""
- Next in thread: Max A. Derkachev: "Re: [phplib] Object registration as a session variable"
- Reply: Max A. Derkachev: "Re: [phplib] Object registration as a session variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

