Changeset 2580

Show
Ignore:
Timestamp:
04/26/08 02:26:46 (2 months ago)
Author:
Geert
Message:

Follow-up to r2578

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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: 
  • trunk/modules/forge/models/user_edit.php

    r2027 r2580  
    3232 
    3333                // // Find all roles 
    34                 // $roles = new Role_Model()
     34                // $roles = new Role_Model
    3535                // $roles = $roles->find(ALL); 
    3636                //  
  • trunk/system/libraries/ORM.php

    r2573 r2580  
    863863        { 
    864864                // Create an empty object 
    865                 $this->object = new StdClass()
     865                $this->object = new StdClass
    866866 
    867867                // Empty the object 
    868                 foreach(self::$fields[$this->table] as $field => $data) 
     868                foreach (self::$fields[$this->table] as $field => $data) 
    869869                { 
    870870                        $this->object->$field = '';