Replaces deprecated paginate() calls in controller bake templates.

Fixes #3895.
Merge pull request #1443 from Phally/master-3895

Replaces deprecated paginate() calls in controller bake templates.