Or, they could all use the same Model, i.e 'MyORMWrapper,' and you can
use that model class as a wrapper to your other ORM code - make sure
to set the model's useTable variable to false/null or somesuch.

I think that would work, and would mean you can share your ORM code
between controllers quite nicely.

Wood



On Feb 2, 5:37 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Feb 2, 2007, at 10:29 AM, einundswanzig wrote:
>
>
>
> > I im pretty new in CakePHP, i have read the tutorial and a few things
> > about it and i was wondering i could use the MVC block of the
> > framework, so i create a controller and a view, but, when i try access
> > the action Cake says that the Model is missing. I want to use an ORM
> > system instead of the one provided by Cake, theres a way to use just
> > the MVC and avoiding being asked for the Model?
>
> While the model is kinda the meat-and-potatoes of the framework, I
> suppose you could do without it.
>
> In your controller, tell it you don't want any models.
>
> var $uses = array();
>
> -- John


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