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 // TODO remove development declarations (used for Eclipse)
38 // * @var CI_DB_active_record
46 // * @var CI_Form_validation
48 // var $form_validation;
70 // * @var CI_Unit_test
78 // * @var CI_Pagination
81 // /* My declarations */
83 // * @var Videos_model
87 private static $instance;
92 public function __construct()
94 self::$instance =& $this;
96 // Assign all the class objects that were instantiated by the
97 // bootstrap file (CodeIgniter.php) to local class variables
98 // so that CI can run as one big super object.
99 foreach (is_loaded() as $var => $class)
101 $this->$var =& load_class($class);
104 $this->load =& load_class('Loader', 'core');
106 $this->load->_base_classes =& is_loaded();
108 $this->load->_ci_autoloader();
110 log_message('debug', "Controller Class Initialized");
114 public static function &get_instance()
116 return self::$instance;
119 // END Controller class
121 /* End of file Controller.php */
122 /* Location: ./system/core/Controller.php */