— [cakephp]findAllByでorderしたい
Posted: Nov 6, 2007, 4:42 pm | Author: cyberryo | Category: Dialy | Tags: Cakephp基本的には下記findAllと同じらしい。
Model::findAll($conditions = null,
$fields = null,
$order = null,
$limit = null,
$page = 1,
$recursive = null
)
つまり、
$model = $this->Model->findAllById($id,null,’created DESC’);
これも知ってるか知らないかで差が出ますねー。