Changeset 3171 for trunk/system/libraries/Controller.php
- Timestamp:
- 07/20/2008 09:27:11 PM (4 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Controller.php
r2229 r3171 23 23 public function __construct() 24 24 { 25 if (Kohana::$instance == =NULL)25 if (Kohana::$instance == NULL) 26 26 { 27 27 // Set the instance to the first controller loaded 28 28 Kohana::$instance = $this; 29 } 29 30 30 // URI should always be available31 $this->uri = new URI;31 // URI should always be available 32 $this->uri = URI::instance(); 32 33 33 // Input should always be available 34 $this->input = new Input; 35 } 36 else 37 { 38 // URI should always be available 39 $this->uri = Kohana::$instance->uri; 40 41 // Input should always be available 42 $this->input = Kohana::$instance->input; 43 } 34 // Input should always be available 35 $this->input = Input::instance(); 44 36 } 45 37
