]>
jfr.im git - z_archive/KronOS.git/blob - video/system/core/Controller.php
fddb81e1931bf6f7e007c90bcd68dea7f001a173
1 <?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
5 * An open source application development framework for PHP 5.1.6 or newer
8 * @author ExpressionEngine Dev Team
9 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
10 * @license http://codeigniter.com/user_guide/license.html
11 * @link http://codeigniter.com
16 // ------------------------------------------------------------------------
19 * CodeIgniter Application Controller Class
21 * This class object is the super class that every library in
22 * CodeIgniter will be assigned to.
24 * @package CodeIgniter
25 * @subpackage Libraries
27 * @author ExpressionEngine Dev Team
28 * @link http://codeigniter.com/user_guide/general/controllers.html
32 private static $instance;
37 public function __construct()
39 self
::$instance =& $this;
41 // Assign all the class objects that were instantiated by the
42 // bootstrap file (CodeIgniter.php) to local class variables
43 // so that CI can run as one big super object.
44 foreach (is_loaded() as $var => $class)
46 $this->$var =& load_class($class);
49 $this->load
=& load_class('Loader', 'core');
51 $this->load
->initialize();
53 log_message('debug', "Controller Class Initialized");
56 public static function &get_instance()
58 return self
::$instance;
61 // END Controller class
63 /* End of file Controller.php */
64 /* Location: ./system/core/Controller.php */