Changeset 2097 for trunk/application

Show
Ignore:
Timestamp:
02/21/2008 11:02:24 AM (9 months ago)
Author:
Geert
Message:
  • Pagination API change: create_links() has been renamed to render(). It is shorter, more consistent and also describes better what the method actually does.
  • Implemented #419: auto_hide option. Setting it to TRUE will hide all pagination stuff if there are only 1 or 0 pages in total.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/application/controllers/examples.php

    r2088 r2097  
    261261                echo 'Classic style: '.$pagination; 
    262262 
    263                 // You can also use the create_links() method and pick a style on the fly if you want 
    264                 echo '<hr />Digg style:     '.$pagination->create_links('digg'); 
    265                 echo '<hr />Extended style: '.$pagination->create_links('extended'); 
    266                 echo '<hr />PunBB style:    '.$pagination->create_links('punbb'); 
     263                // You can also use the render() method and pick a style on the fly if you want 
     264                echo '<hr />Digg style:     '.$pagination->render('digg'); 
     265                echo '<hr />Extended style: '.$pagination->render('extended'); 
     266                echo '<hr />PunBB style:    '.$pagination->render('punbb'); 
    267267                echo 'done in {execution_time} seconds'; 
    268268        }