On 10/20/06, Syl <[EMAIL PROTECTED]> wrote:
>
> Hey Chris
>
> Thanks for your reply.  Could you be a little more specific ?  I've
> read the association stuff in the manual, but it does not speak about
> having unrelated models using a single controller.  Or at least not
> that I can see - I'm new to cake and php.

> Are you talking about creating a view/controller without a model.  I
> remember seeing something about that in my research.
>
> Thanks again,
>
> Sylvia

You can create controllers without associated models.  That's one of
the strengths of the whole Model-View-Controller paradigm that Cake is
built on.  Cake makes it easy to use more than one model in a
controller through the $uses variable that you may have noticed in
some sample controller code.

The point I'm making is that you don't have to stick with the one
model, one controller, one view idea.  You can have multiple models
being used by one controller, and multiple views being used (Rails
calls them partials, can't remember what they are called in Cake.
Elements, I think?)

Hope that helps.

-- 
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

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

Reply via email to