cakephp/cakephp — pull request #544 by zwxajh (2012-03-05 08:39:20+00:00)
Title: item count should be done before get result data

if $page > $pageCount : hope to show the lastest page. Not Empty Page.

or $page < 1 : hope to show the first page. Not Empty Page.