[fw-general] Zend_Auth storage

2011-04-01 Thread Steve Rayner
I have this to store persistent data for an authenticated user; // We're authenticated! Store details. $identity = $adapter-getResultRowObject(); $authStorage = $auth-getStorage(); $authStorage-write($identity); I would like to add one extra bit of info to the persistent storage.

Re: [fw-general] Zend_Auth storage

2011-04-01 Thread Jurian Sluiman
On Friday 01 Apr 2011 16:15:34 Steve Rayner wrote: I have this to store persistent data for an authenticated user; // We're authenticated! Store details. $identity = $adapter-getResultRowObject(); $authStorage = $auth-getStorage(); $authStorage-write($identity); I would

Re: [fw-general] Zend_Auth storage

2011-04-01 Thread Ralph Schindler
Since you are using Zend_Auth_Adapter_DbTable, and calling $adapter-getResultRowObject(); .. The resulting object is simply a stdClass. If you'd like you can add information to that identity object. $identity-someProperty = $someValue; Then write that to the authentication storage medium.