简体   繁体   中英

CakePHP: is there a way to make every find('list') return an array ordered?

I'd like every Model->find('list') could return the array ordered by the $displayField set on Model. Is there a way to do this beyond set 'order' => 'Model.display_field ASC' on every find call?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM