If you need to populate a select tag from a db $this-><YourModel>- >generateList() should do the job, http://api.cakephp.org/1.2/class_model.html#27ff9de8aaff38950bee5f4ffb22b4d1
On Apr 26, 9:18 am, aniston <[EMAIL PROTECTED]> wrote: > hello, I'm relatively new to cakePHP and already like its > architecture, After going through the simple Blog sample application, > I'm trying to expand a sample application that needs to find DISTINCT > values in the MySQL db and present them as a dropdown selection list > to the user. > > Till now i still haven't found an appropriate examples to do this > task, can anyone give me a simple working example ? or a link to > something similar. > > Thanks in advance. > > PS: the reason for selecting the distinct values from the db are > because these values are constantly changing. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
