Twitter Bootstrap Compatible Pagination Links in CakePHP

Twitter Bootstrap Compatible Pagination Links in CakePHP

I use Twitter Bootstrap in every CakePHP application I build. If you do the same you probably know the scaffolding generated pagination links are a little skewed. Here is an Element that I created that will properly render CakePHP Pagination links using Twitter Bootstrap’s pagination styling.

To use this element create a file in app/View/Elements/ named pagination.ctp and paste the above code snippet.

Next, in your index.ctp view replace the existing Paginator code with the following element call.

Comments are closed.