Monday, April 27, 2009

$this->data = $this->Model->read(null, $id);

Wondering if there is a way to use the same conditions, fields, contain in a read()? So you can limit the tables returnng data?
 
if (empty($this->data)) {
              $this->data = $this->User->read(null, $id);
          }
 
Dave

--~--~---------~--~----~------------~-------~--~----~
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: