Using DISTINCT in a CakePHP find function

后端 未结 12 2006
情歌与酒
情歌与酒 2020-12-06 05:54

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.

12条回答
  •  [愿得一人]
    2020-12-06 06:07

    Yes the problem is that you are using a listing which designed for a id / value output. You probably will have to do a find('all') and then build the list yourself.

提交回复
热议问题