Hi,
In my DB I have 3 tables
objects, users & votes

as you probably guessed a user can vote for an object.
I've created models, controllers and views for all 3.
I've also made a user login and saved him on the session object.

Now I want him to be able to vote.
so on the objects view I created a form that calls the votes
controller
votes/castVote
and sent the object ID via hidden form field.

before I add the data to the DB I want to check that the object exists
in the objects table.
the problem is that I'm in the votes controller - how do I gain access
to the objects model from a controller that is not his?
What am I missing?


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