[fw-general] problem with autoloading class definition for serialization and deserialization

2010-11-28 Thread Bram Gadeyne
Dear all, I'm trying to persist some objects to the session. But everything I try end up with the following error message: Fatal error: Shop_CardController::addAction(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class

Re: [fw-general] problem with autoloading class definition for serialization and deserialization

2010-11-28 Thread Hector Virgen
Is the module autoloader set up before the session is started? If you are using protected _init* methods in your bootstrap, make sure the autoloader method is above the session one, or call $this-bootstrap('autoloader') within your _initSession method. -- Hector Virgen Sent from my Droid X On Nov

Re: [fw-general] problem with autoloading class definition for serialization and deserialization

2010-11-28 Thread Bram Gadeyne
Thank you for your answer! However, I think I already do what you propose here. Here's the first method from my bootstrap file.: protected function _initAutoload(){ $modelLoader=new Zend_Application_Module_Autoloader(array( 'namespace' = '', 'basePath' =

Re: [fw-general] problem with autoloading class definition for serialization and deserialization

2010-11-28 Thread Hector Virgen
Can you use pastebin.com or pastie.org instead? Thanks! -- Hector Virgen Sent from my Droid X On Nov 28, 2010 10:01 AM, Bram Gadeyne gadeyneb...@gmail.com wrote: Thank you for your answer! However, I think I already do what you propose here. Here's the first method from my bootstrap file.:

Re: [fw-general] problem with autoloading class definition for serialization and deserialization

2010-11-28 Thread Bram Gadeyne
Offcourse! Here's the URL: http://pastie.org/1330361 kind regards Bram Gadeyne On 28-11-10 19:30, Hector Virgen wrote: Can you use pastebin.com http://pastebin.com or pastie.org http://pastie.org instead? Thanks! -- Hector Virgen Sent from my Droid X On Nov 28, 2010 10:01 AM, Bram

Re: [fw-general] problem with autoloading class definition for serialization and deserialization

2010-11-28 Thread Hector Virgen
Thanks! I think Nabble discards the attachments plus I can't view php files on my phone :( Anyways, I noticed your module autoloader is loading the namespace '' but your session wants to unserialize a Shop_* class. You'll need to set up another module autoloader for the Shop namespace or manually

Re: [fw-general] problem with autoloading class definition for serialization and deserialization

2010-11-28 Thread Bram Gadeyne
Thanks a lot! It works fine now. I did create a new autoloader for the Shop namespace. On 28-11-10 19:43, Hector Virgen wrote: Thanks! I think Nabble discards the attachments plus I can't view php files on my phone :( Anyways, I noticed your module autoloader is loading the namespace ''