Changeset 1754 for trunk/system/libraries/Controller.php
- Timestamp:
- 01/20/2008 05:14:16 PM (12 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Controller.php
r1753 r1754 10 10 class Controller_Core { 11 11 12 // Always loaded libraries13 public $load;14 public $uri;15 public $input;16 17 12 /** 18 13 * Constructor: __construct … … 21 16 public function __construct() 22 17 { 23 if ( Kohana::$instance == FALSE)18 if (empty(Kohana::$instance)) 24 19 { 20 // Set the instance to the first controller loaded 25 21 Kohana::$instance = $this; 22 23 // Loader should always be available 24 $this->load = new Loader; 25 26 // URI should always be available 27 $this->uri = new URI; 28 29 // Input should always be available 30 $this->input = new Input; 26 31 } 27 28 // Loader should always be available29 $this->load = new Loader();30 31 // URI should always be available32 $this->uri = new URI();33 34 // Input should always be available35 $this->input = new Input();36 32 } 37 33
