I am writing a CakePHP 1.2 app. I have a list of people that I want the user to be able to filter on different fields. For each filterable field, I have a drop down list.
Just group by the fields that you want to get distinct.. or use Set::extract() and then array_unique()
Set::extract()
array_unique()