- Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
here:
class LogEntry extends Model {
function beforeSave($options) { if (empty($this->data['LogEntry']['id'])) { $this->data['LogEntry']['url'] = Router::url('', true); $this->data['LogEntry']['ip'] = ip2long($_SERVER['REMOTE_ADDR']); $this->data['LogEntry']['time'] = time(); $this->data['LogEntry']['datetime'] = date('Y-m-d H:i:s'); } return true; } }
Metadata
Metadata
Assignees
Labels
No labels