Changeset 3383
- Timestamp:
- 08/28/2008 03:22:02 PM (3 months ago)
- Location:
- trunk/system/classes
- Files:
-
- 2 modified
-
orm.php (modified) (2 diffs)
-
router.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/classes/orm.php
r3379 r3383 77 77 { 78 78 // Set the object name 79 $this->object_name = strtolower(substr(get_class($this), 0, -6));79 $this->object_name = strtolower(substr(get_class($this), 6)); 80 80 81 81 // Initialize database … … 454 454 } 455 455 456 if ( ! isset($this->db_applied['orderby'])) 457 { 458 // Apply sorting 459 $this->db->orderby($this->sorting); 460 } 461 456 462 return $this->load_result(); 457 463 } -
trunk/system/classes/router.php
r3381 r3383 70 70 if (preg_match('#^'.$regex.'$#u', self::$current_uri, $matches)) 71 71 { 72 echo Kohana::debug($regex, $name); 73 72 74 // If matches exist and there are keys for the URI, parse them 73 75 if (count($matches) > 1 AND $keys = Router::keys($route[0])) … … 104 106 } 105 107 108 // Set controller name 109 self::$controller = $route['controller']; 110 106 111 if (isset($route['method'])) 107 112 {
