What is the best way to populate a Drop Down list from data stored in the database? Assuming that only selected fields are required and the data needs to be filtered to returns selected rows
(e.g. SELECT id, description FROM states WHERE country_id = 1) Which of the following solutions would be best practice using the MVC pattern: 1. Create a function in the Model to return an Array containing the required data? 2. Create a function in the Controller to return an Array containing the required data? 3. Create a view in the database with it's own model & controller? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
