cakephp/cakephp — pull request #545 by zwxajh (2012-03-05 09:01:33+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.