avoid paginate count when no results
fix failing test
Merge pull request #1067 from ceeram/paginatecount

Avoid calling paginateCount when there are no results.
Allow AuthComponent::$unauthorizedRedirect to be an url.
Closes #3494
Improve messages logged for exceptions
Display exact PDO error on default homepage
Added missing keyword
fix return type in docblock
Merge branch 'master' into 2.3

Conflicts:
	lib/Cake/Network/Http/HttpResponse.php
Remove Security.level from core.php

it's not used by cake, and it can confuse users familiar with 1.3
that this setting exists yet doesn't do anything in later versions
Don't set "required" attribute for checkboxes (unless explicitly specified).
Adding it prevents user from submitting form with checkbox unchecked when the "boolean" validation rule is specified for the field.
Closes #3560
remove unused local vars
Merge pull request #1082 from ADmad/bugfix-3560

Don't set "required" attribute for checkboxes (unless explicitly specifi...
Merge pull request #1083 from ceeram/2.3-pmdvars

Remove unused local vars.
Refactoring the Controller::render method, moved the part that constructs the view instance into Controller::_view() for easier overloading this part and better modularization
Fixing a code formatting mistake in Controller::render()
Fix Hash::sort() 'natural' type fallback on PHP < 5.4
Renaming Controller::_view() to Controller::_getViewObject()
Fixing typo in Controller::_getViewObject doc block and changing the view class comparison from != to !==
Changing the doc block of Controller::_getViewObject()