Instead, you should return a status and call the debug functon from
controller
if ($this->Waitlist->save()) {
...
} else {
//debug here
}
btw parrent::errorlog while not call the controller... it will call
the model parent... (appmodel or model)
On 30 jan, 06:31, Henrik Gemal wrote:
> I
In my model I want to call a debug function in the controller. But how
do I do that?
Something like:
$ok = $waitlist->save($data);
if (!$ok) {
parent::errorlog("waitlist save not ok");
or is this the wrong way to do thing? Should I use a completely
different approche?
--~--~-~