You could either use find() along with 'contain' or you could simply not display certain fields in the view.
On Thu, Apr 9, 2009 at 12:29 PM, Dave Maharaj :: WidePixels.com <[email protected]> wrote: > > Can anyone assist me with this? > > In the standard controller view function there is this: > > $this->set('user', $this->User->read(null, $id)); > > > which gets all the User info from the tables based on the ID but I do not > want every thing returned. I have information for that User in their profile > function which only they have access to. The view function is public for > everyone to see and want to limit the information returned. > > Right now it returns Users / Educations / Messages / Preferences information > from the tables but I would like to only return info from the Users and > Educations tables. > > How can I choose what tables to return info from? > > Thanks, > > Dave > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
