in controller:

$uses = array('News', 'Testimonial');

You'll have access to both models.

On Sep 14, 3:47 pm, AliBabNet <[EMAIL PROTECTED]> wrote:
> Hello
>
> I'm turning crazy, I've been over the manual 50 times, read tutorials,
> I just can't find out how to use 2 models in 1 controller.
>
> Let's say on my homepage I want to list my NEWS, and list my
> TESTIMONIALS.
> Both of them are models, but if I follow the examples, I would have to
> declare something like
> var $name = 'News';
> at the beginning of my controller... so I just can't use Testimonials
> anymore after that... or how does it work??
>
> Sorry for this question, probably sounds dumb... but I'll persist!! :)
>
> Thanks
> Philippe


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to