Created
January 4, 2009 16:48
-
-
Save mdarby/43115 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load User from the database | |
$user = $this->User->findById(121); | |
// Set User's last login time | |
$user['User']['last_login'] = date('Y-m-d g:i:s'); | |
// Save User back to the database | |
$this->User->save($user); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment