Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

cakephp order by

$query = $articles
    ->find()
    ->select(['id', 'name'])
    ->where(['id !=' => 1])
    ->order(['created' => 'DESC']);

foreach ($query as $article) {
    debug($article->created);
}
Source by book.cakephp.org #
 
PREVIOUS NEXT
Tagged: #cakephp #order
ADD COMMENT
Topic
Name
1+7 =