/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function modelFunction() { $this->data[$this->alias]['datetime_field'] = DboSource::expression('NOW()'); $this->save(); }