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.
If the information is not related to authentication, I'd simply put it
inside your own slice of Zend_Session_Namespace;
Hope this helps,
-ralph
On 4/1/11 9:15 AM, 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 like to add one extra bit of info to the persistent storage.
Is there any way i can append this to the stored $identity?
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com