Friday, January 30, 2009

Call function in controller from model

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?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: