Changeset 2580
- Timestamp:
- 04/26/08 02:26:46 (2 months ago)
- Files:
-
- trunk/application/controllers/examples.php (modified) (3 diffs)
- trunk/modules/forge/models/user_edit.php (modified) (1 diff)
- trunk/system/libraries/ORM.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/application/controllers/examples.php
r2314 r2580 258 258 // 'base_url' => 'welcome/pagination_example/page/', // base_url will default to current uri 259 259 'uri_segment' => 'page', // pass a string as uri_segment to trigger former 'label' functionality 260 // 'query_string' => 'pee', 260 261 'total_items' => 254, // use db count query here of course 261 262 'items_per_page' => 10, // it may be handy to set defaults for stuff like this in config/pagination.php … … 267 268 268 269 // 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(); 270 271 echo '<hr />Extended style: '.$pagination->render('extended'); 271 272 echo '<hr />PunBB style: '.$pagination->render('punbb'); … … 292 293 /*function payment() 293 294 { 294 $credit_card = new Payment ();295 $credit_card = new Payment; 295 296 296 297 // You can also pass the driver name to the library to use multiple ones: trunk/modules/forge/models/user_edit.php
r2027 r2580 32 32 33 33 // // Find all roles 34 // $roles = new Role_Model ();34 // $roles = new Role_Model; 35 35 // $roles = $roles->find(ALL); 36 36 // trunk/system/libraries/ORM.php
r2573 r2580 863 863 { 864 864 // Create an empty object 865 $this->object = new StdClass ();865 $this->object = new StdClass; 866 866 867 867 // Empty the object 868 foreach (self::$fields[$this->table] as $field => $data)868 foreach (self::$fields[$this->table] as $field => $data) 869 869 { 870 870 $this->object->$field = '';
