How can I call the log() function inside the model beforeSave() function?
All three variants I used didn't work:
function beforeSave() {
#...
Debugger::log($y.' '.$ty);
log('test');
$this->log('testmodel');
}
How can I call the log() function inside the model beforeSave() function?
All three variants I used didn't work:
function beforeSave() {
#...
Debugger::log($y.' '.$ty);
log('test');
$this->log('testmodel');
}
Ah! My model was named wrong and it never got called. This works flawlessly:
$this->log($test);