Hallo,
ich versuche mich erstmalig mit dem OO Programmieren unter PHP 5.
Daher folgendes Problem:
Ich möchte meine Erzeugten Objekte in einer Session Variablen speichern
	
Wenn ich dann in einem anderen File dieses Objekt benutze
	
kommt folgende Fehlermeldung:
Fatal error: main() [function.main]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Library" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in ...
Danke für eure Hilfe!
					ich versuche mich erstmalig mit dem OO Programmieren unter PHP 5.
Daher folgendes Problem:
Ich möchte meine Erzeugten Objekte in einer Session Variablen speichern
PHP Code:
	
	
public function create_library(){
$_SESSION['library']=new Library();    
} 
PHP Code:
	
	
$_SESSION['library']->check_login(); 
Fatal error: main() [function.main]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Library" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in ...
Danke für eure Hilfe!
 
          
 Moderator
 Moderator
Comment