3 tables:
clubs, polls, featured_poll
Now each club is assigned to a poll (poll_id, in clubs table).
Then the featured_poll just keeps a record of which poll is featured
currently.
The problem I am having is that when we want to create a club there is a
list of polls to choose from but we want to mark the "featured poll" as
selected by default.
However there is no association between the club and the featured_poll model
or DB tables.
Is it possible to get the value of the featured_poll table and then when
displaying the list of poll options just default it to that option?
Am I going about this the correct way or are there are ways to accomplish
this? Do you need me to display here my model information to give a better
picture?
thanks
angelo
--
View this message in context: http://www.nabble.com/accessing-different-models-in-controller-tp20729653p20729653.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment