When is it preferable to use read() instead of find() to query data
from the database?
In the blog tutorial, read() is used:
$this->Post->id = $id;
$this->set('post', $this->Post->read());
BUT, I've always just used find / findBy:
$this->set('post', $this->Post->findById($id));
What's the difference?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---