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 <henrikge...@gmail.com> wrote:
> 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:
Post a Comment