I have a quick question about the Zend_Application_Module_Autoloader and
unserializing a class from a session. I am trying to store a custom user
identity class with Zend_Auth... class name: Account_Model_User, this is
part of my account module which is all accessed using the
Zend_Application_Module_Autoloader so in theory Account_Model_User should
instantiate itself.

The autoloader config comes before the session in the bootstrap, am I right
in believing that this should work and the session should be able to use the
references created in the module autoloader?

If I include the require for the class all is fine (as you would expect
prior to autoloading), which leads me to wonder if I am unknowingly loading
the session before I think I am (I have tested as best I can for this and
don't seem to be) or otherwise the module autoloader and the session aren't
working together.

The odd thing (to me at least) is if I instantiate Account_Model_User for
testing in the session bootstrap method it's loaded without problem.

I realise this is a bit up in the air but if anyone has any experience or
can categorically say it should work then I can waste more time on trying to
get it running properly. For the moment I am just requiring the file to get
me out of a hole!

Thanks
Simon

-----
Simon

http://www.ajb007.co.uk/
-- 
View this message in context: 
http://www.nabble.com/Problem-unserialising-Auth-objects-tp25888435p25888435.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to