|
||||
|
Sorted!!
![]() The getIdentity() function of the Auth class returns and associative array - an stdClass Object. So in order for me to get the id from the authenticated identity. i simply used the follwing codes Quote:
![]() so Code:
... $user = $auth->getIdentity(); print_r($user); ... Code:
stdClass Object ( [AdminID] => 1 [UserName] => dele454 [Password] => c2e952765241f5aa228c494042f7d5aa [FirstName] => Dele [SurName] => Agagu [Cell] => 0822926034 [Online] => 0 [RoleID] => 1 [LastLogin] => 2008-07-22 11:21:53 ) Last edited by dele454 : 07-22-2008 at 09:41 AM. |
|
||||
|
With all the blabbings on my last post this single line of code does all that i mentioned.
Code:
$user = $auth->getIdentity(); $user->AdminID //get id of admin from db Last edited by dele454 : 07-22-2008 at 10:59 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|