views:

179

answers:

1

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');
}
A: 

Ah! My model was named wrong and it never got called. This works flawlessly:

$this->log($test);
ByteNirvana