Laravel 4 Pagination bug with Twitter Bootstrap 3

送分小仙女□ 提交于 2019-12-03 13:49:55

I saw something in one of the latest update, I haven't tried but it looks like all you have do do is change:

'pagination' => 'pagination::slider',

In the view config to:

'pagination' => 'pagination::slider-3',

This then uses:

https://github.com/laravel/framework/blob/master/src/Illuminate/Pagination/views/slider-3.php

Yes you can :) edit /app/config/view.php to specify the pagination value:

<?php
return array(
    'paths' => array(__DIR__.'/../views'),
    'pagination' => 'elements/pagination',
);

after that, create a view/elements/pagination.php, and put + modify the content of the following file: https://github.com/laravel/framework/blob/master/src/Illuminate/Pagination/views/slider.php

There is an update as said by "crynobone" on laravel forum.

4.0.*@dev (to be released as 4.0.8) now include a new view for bootstrap 3. Follow this step to have it as default

http://forums.laravel.io/viewtopic.php?id=13256

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!