[eluser]yuro[/eluser]
Code:
Controller.php
class CI_Controller extends CI_Base{
private static $instance;
function Controller()
{
parent::CI_Base();
}
public function __construct()
{
self::$instance =& $this;
// Assign all the class objects that were instantiated by the
// bootstrap file (CodeIgniter.php) to local class variables
// so that CI can run as one big super object.
foreach (is_loaded() as $var => $class)
{
$this->$var =& load_class($class);
}
$this->load =& load_class('Loader', 'libraries');
$this->load->initialize();
log_message('debug', 'Controller Class Initialized');
}
public static function &get;_instance()
{
return self::$instance;
}
}
Do you mean the Controller.php? Thats the code of the file.