/ Published in: PHP
A very simple example of how you can refresh the data into an Identity instance generated by Zend Auth
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$this->auth = Zend_Auth::getInstance(); // Creating user object using the email stored in session $user = new Master_Model_User( $this->auth->getIdentity()->email ); $user->status = 1; $user->Save(); // Saves user data $this->auth->getStorage()->write($user);