Changeset 2580 for trunk/application

Show
Ignore:
Timestamp:
04/26/2008 01:26:46 AM (7 months ago)
Author:
Geert
Message:

Follow-up to r2578

Files:
1 modified

Legend:

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

    r2314 r2580  
    258258                        // 'base_url'    => 'welcome/pagination_example/page/', // base_url will default to current uri 
    259259                        'uri_segment'    => 'page', // pass a string as uri_segment to trigger former 'label' functionality 
     260                        // 'query_string'   => 'pee', 
    260261                        'total_items'    => 254, // use db count query here of course 
    261262                        'items_per_page' => 10, // it may be handy to set defaults for stuff like this in config/pagination.php 
     
    267268 
    268269                // You can also use the render() method and pick a style on the fly if you want 
    269                 echo '<hr />Digg style:     '.$pagination->render('digg'); 
     270                echo '<hr />Digg style:     '.$pagination->render(); 
    270271                echo '<hr />Extended style: '.$pagination->render('extended'); 
    271272                echo '<hr />PunBB style:    '.$pagination->render('punbb'); 
     
    292293        /*function payment() 
    293294        { 
    294                 $credit_card = new Payment(); 
     295                $credit_card = new Payment; 
    295296 
    296297                // You can also pass the driver name to the library to use multiple ones: