Browse Source

pagination fix

Daniel Müllers 11 years ago
parent
commit
11141270e5
2 changed files with 10 additions and 1 deletions
  1. 1 1
      app/config/view.php
  2. 9 0
      app/views/pagination.php

+ 1 - 1
app/config/view.php

@@ -26,6 +26,6 @@ return array(
 	|
 	*/
 
-	'pagination' => 'pagination::slider',
+	'pagination' => 'pagination',
 
 );

+ 9 - 0
app/views/pagination.php

@@ -0,0 +1,9 @@
+<?php
+        $presenter = new Illuminate\Pagination\BootstrapPresenter($paginator);
+?>
+
+<?php if ($paginator->getLastPage() > 1): ?>
+        <ul class="pagination">
+            <?php echo $presenter->render(); ?>
+        </ul>
+<?php endif; ?>