OK unbind model. I managed to unbind 1 model but how unbind multiple
models at one?
$this->User->unbindModel(array('hasMany' => array('Message')));
thanks
Dave
On Apr 9, 2: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
-~----------~----~----~----~------~----~------~--~---