You can always at any time use any model.
By default a controller has direct access to the model of the same name.
If that model is associated with other models, you have access to them  
too.

$this->User->Group;

You can also manually specify which models you would like to use in  
your controller with the $uses controller attribute.

Then it's just a matter of handing the data you need over to the view  
and outputting it.

On 10 Sep 2008, at 03:46, Panda wrote:

>
> Hi, Im new in cake and i have a problem, I have a model called Users,
> in the view of the method add i want to show a options to add a Group
> (groups is another model), how can I create a Group since the add view
> of the Users model.
>
> what can I use (ajax, element)
> an how can I do it??
>
> Please Help me
>
> >


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

  • View Panda
    • Re: View David C. Zentgraf

Reply via email to