Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-07-2008, 03:49 PM
Junior Member
 
Join Date: Feb 2008
Posts: 17
Question Zend_Auth_Adapter_DbTable result object

I am trying to use Zend_Auth_Adapter_DbTable for authentication, and I'm having the following problem when trying to retrieve the result row object.

Code:
$result_data = $authAdapter->getResultRowObject();
I can print_r the data, and see the values, but retrieving them as an array gives the following error:

Code:
Fatal error: Cannot use object of type stdClass as array
Does anyone know the proper way of accessing the result object data?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-07-2008, 04:18 PM
Junior Member
 
Join Date: Feb 2008
Posts: 17
Default

Okay, I figured it out. A search on stdClass objects revealed my fairly noobish mistake.

Code should have been $resultObject->user_id, rather than $resultObject['user_id']
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:53 AM.