I'm running in a problem with cakephp pagination. Currently, my pagination is rather standard. After x results, it creates a second page. And so on.
What i would like to do is to order them by month. As it is a news archive, I would like to be able to select the month instead of the page.
So instead:
- Page 1
- Page 2
- Page 3
I would like to have:
- January 2010
- February 2010
- March 2010
How is this possible? I can't seem to find it. My current code:
var $paginate = array('limit' => 50, 'page' => 1, 'order'=>array('Newsitem.created'=>'DESC'));
thanks in advance!!