Here is what I do:

## Get all members
$members = $this->Member->findAll();
//TODO: Figure out how to distinguish error indatabase from zero
recors???
if(!$members)
{
        $this->EventLogger->logEvent("Unable to fetch members from database!",
'FATAL_ERROR');
}
$this->set('members', $members);


The problem is that I got 'Unable to fetch' message even if app was
able to fetch but thre was nothing to fetch


tnx in advance


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to