D
D
dro1d2015-12-04 13:04:04
Yii
dro1d, 2015-12-04 13:04:04

How to sort CListView by record id in descending order in Yii?

There is CListView. There is a need to sort all entries in descending order of id (that is, the most recently added entries should be at the beginning of the list). There should be no options or buttons. How to do it? Thank you.
The call to CListView is made on site/index, the data from news will be displayed in CListView.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2015-12-07
@R0dger

Do you google sometimes - yiiframework.ru/forum/viewtopic.php?t=5272

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question