function CI_Base() { global $OBJ; parent::CI_Loader(); $this->load =& $this; $OBJ = $this->load; }
function CI_Base() { // This allows syntax like $this->load->foo() to work parent::CI_Loader(); $this->load =& $this; // This allows resources used within controller constructors to work global $OBJ; $OBJ = $this->load; // Do NOT use a reference. }
/** * Constructor * * Sets the path to the view files and gets the initial output buffering level * * @access public */ function MY_Loader() { // {{{ Matchbox $this->_matchbox =& load_class('Matchbox'); $this->_ci_tables = array(); parent::CI_Loader(); // }}} $this->_ci_is_php5 = floor(phpversion()) >= 5 ? TRUE : FALSE; $this->_ci_view_path = APPPATH . 'views/'; $this->_ci_ob_level = ob_get_level(); log_message('debug', "Loader Class Initialized"); }
function MY_Loader() { parent::CI_Loader(); }
function __construct() { parent::CI_Loader(); /* change view folder */ $this->_ci_view_path = dirname(dirname(dirname(dirname(__FILE__)))) . "/web-content/themes/"; }
function CI_Loader() { parent::CI_Loader(); log_message('debug', "MY_Loader Class Initialized"); }