public function __construct() { $this->_ci_library_paths = array(PATH_APP, PATH_APPS, PATH_SYSTEM); $this->_ci_helper_paths = array(PATH_APP, PATH_APPS, PATH_SYSTEM); $this->_ci_view_paths = array(VIEWPATH => TRUE, MODULES_DIR => TRUE); parent::__construct(); }
/** * Constructor * * @access public */ public function __construct() { parent::__construct(); $this->_ci_service_paths = array(APPPATH); $this->_ci_services = array(); log_message('debug', "MY_Loader Class Initialized"); }
/** * Class constructor method */ public function __construct() { parent::__construct(); $this->config('loader', TRUE); $this->_initialize(); log_message('info', __CLASS__ . ' Class Initialized'); }
/** * Constructor. Define SPARKPATH if it doesn't exist, initialize parent */ function __construct() { if (!defined('SPARKPATH')) { define('SPARKPATH', APPPATH . 'sparks/'); } parent::__construct(); }
function __construct() { if (!defined('SPARKPATH')) { define('SPARKPATH', 'sparks/'); } $this->_ci_events_paths = array(APPPATH); parent::__construct(); }
public function __construct() { parent::__construct(); # -- Loading libraries, helpers and modules from SHAREDPATH $this->_ci_library_paths = array(SHAREDPATH, BASEPATH); $this->_ci_helper_paths = array(SHAREDPATH, BASEPATH); $this->_ci_model_paths = array(SHAREDPATH); }
public function __construct() { parent::__construct(); self::$APP = get_instance(); self::$APP->config = new MX_Config(); self::$APP->lang = new MX_Language(); $this->_module = self::$APP->router->fetch_module(); }
/** * Constructor. Define SPARKPATH if it doesn't exist, initialize parent */ function __construct() { if (!defined('SPARKPATH')) { define('SPARKPATH', 'sparks/'); } $this->_is_lt_210 = is_callable(array('CI_Loader', 'ci_autoloader')) || is_callable(array('CI_Loader', '_ci_autoloader')); parent::__construct(); }
/** * Constructor * * Sets the path to the view files * * @return void */ public function __construct() { parent::__construct(); $this->_ci_library_paths = array(LOCALAPPPATH, APPPATH, BASEPATH); $this->_ci_helper_paths = array(LOCALAPPPATH, APPPATH, BASEPATH); $this->_ci_model_paths = array(LOCALAPPPATH, APPPATH); log_message('debug', 'TOC_Loader Class Initialized'); }
public function __construct() { parent::__construct(); /* set the module name */ $this->_module = CI::$APP->router->fetch_module(); /* add this module path to the loader variables */ $this->_add_module_paths($this->_module); }
/** * Constructor * * Add the current module to all paths permanently */ public function __construct() { parent::__construct(); // Get current module from the router $router =& $this->_ci_get_component('router'); $this->module = $router->getModule()->add($this); // Load base views $this->library('base::Views', array($this->module)); }
/** * CORE LOAD CONSTRUCTOR * * Assigns all CI paths to allow common functionality * */ public function __construct() { parent::__construct(); $this->_ci_library_paths = array(APPPATH, COMMONPATH, BASEPATH); $this->_ci_helper_paths = array(APPPATH, COMMONPATH, BASEPATH); $this->_ci_model_paths = array(APPPATH, COMMONPATH); $this->_ci_view_paths = array(APPPATH . 'views/' => TRUE, COMMONPATH . 'views/' => TRUE); $this->config->_config_paths = array(COMMONPATH, APPPATH); }
/** * Constructor * * Add the current module to all paths permanently */ public function __construct() { parent::__construct(); // Get current module from the router $router =& $this->_ci_get_component('router'); if ($router->module) { $this->add_module($router->module); } }
/** * Constructor * */ function __construct() { // Call the Loader Constructor parent::__construct(); // Create an instance to CI $CI =& get_instance(); // Load the Widget model $this->model('Widgets_model', 'widgets'); }
function __construct() { parent::__construct(); // 修改路径 添加ROOT $this->_ci_helper_paths = array(APPPATH, LIBS_PATH, BASEPATH); $this->_ci_library_paths = array(APPPATH, LIBS_PATH, BASEPATH); $this->_ci_model_paths = array(APPPATH, LIBS_PATH); //$this->_ci_view_paths = array(ROOT.'views/' => TRUE); }
/** * Constructor * * Sets the path to the view files and gets the initial output buffering level */ public function __construct() { parent::__construct(); $this->_ci_ob_level = ob_get_level(); // CodeIgniter uses 'application/views/' directory for loading views // But we want to use 'themes/' directory $this->_ci_view_paths = array(THEMESPATH => TRUE); // (THEMESPATH is defined in index.php) log_message('debug', "Loader Class Initialized"); }
function CI_Base() { // This allows syntax like $this->load->foo() to work parent::__construct(); $this->load =& $this; // This allows resources used within controller constructors to work global $OBJ; $OBJ = $this->load; // Do NOT use a reference. }
public function __construct() { parent::__construct(); // Add custom path information for libraries, helpers, models and views log_message('debug', 'Plain_Loader Class Initialized'); array_unshift($this->_ci_library_paths, CUSTOMPATH); array_unshift($this->_ci_helper_paths, CUSTOMPATH); array_unshift($this->_ci_model_paths, CUSTOMPATH); $this->_ci_view_paths = array(CUSTOMPATH . 'views/' => true, APPPATH . 'views/' => true); }
/** * Constructor. Define SPARKPATH if it doesn't exist, initialize parent */ function __construct() { if (!defined('SPARKPATH')) { // define('SPARKPATH', 'sparks/'); // @link https://bitbucket.org/kenjis/my-ciunit/wiki/Home define('SPARKPATH', BASEPATH . '../../sparks/'); } $this->_is_lt_210 = is_callable(array('CI_Loader', 'ci_autoloader')) || is_callable(array('CI_Loader', '_ci_autoloader')); parent::__construct(); }
function __construct() { parent::__construct(); // Fix the paths. The next line is the only change here. The rest is the exact CI function. $this->_ci_library_paths = array(BASEPATH, APPPATH, COMMONPATH); $module = $this->is_modular(); if ($module) { $this->add_package_path(APPPATH . 'plugins/' . $module, TRUE); } }
public function __construct() { parent::__construct(); // $query = new Java("com.dbms.java.Query", 'SELECT 123'); // echo $query->last_query(); //// exit; // $db =new Java("com.dbms.java.DB"); // $this->db =$db; // $CI =& get_instance(); // $CI->db = $db; }
function __construct() { parent::__construct(); // 修改路径 添加ROOT $this->_ci_helper_paths = array(APPPATH, LIBS_PATH, BASEPATH); $this->_ci_library_paths = array(APPPATH, LIBS_PATH, BASEPATH); $this->_ci_model_paths = array(APPPATH, LIBS_PATH); if (defined('VIEWS')) { $this->_ci_view_paths = array(VIEWS => TRUE); } else { define('VIEWS', APPPATH . 'views/'); } }
/** * Constructor. Define SPARKPATH if it doesn't exist, initialize parent */ function __construct() { if (!defined('SPARKPATH')) { define('SPARKPATH', 'sparks/'); } $this->_is_lt_210 = is_callable(array('CI_Loader', 'ci_autoloader')) || is_callable(array('CI_Loader', '_ci_autoloader')); parent::__construct(); $this->_ci_modules = array(); // Added for caching all the loaded modules $this->_ci_widgets = array(); $this->_ci_mixins = array(); load_class('Module', 'core'); load_class('Widget', 'core'); // Load the widget base class }
public function __construct() { parent::__construct(); /* set the module name */ $this->_module = CI::$APP->router->fetch_module(); /* add this module path to the loader variables */ $this->_add_module_paths($this->_module); // Set the addons folder as a package. // If SITE_REF isn't defined then they must be // running the multi-site manager if (defined('SITE_REF')) { $this->add_package_path(ADDONPATH); } }
/** Initialize the loader variables **/ public function initialize($controller = NULL) { parent::__construct(); if (is_a($controller, 'MX_Controller')) { /* reference to the module controller */ $this->controller = $controller; /* references to ci loader variables */ foreach (get_class_vars('CI_Loader') as $var => $val) { if ($var != '_ci_ob_level') { $this->{$var} =& CI::$APP->load->{$var}; } } } else { parent::initialize(); } /* set the module name */ $this->_module = CI::$APP->router->fetch_module(); /* add this module path to the loader variables */ $this->_add_module_paths($this->_module); }
/** * Constructor */ public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); /* set the module name for Modular Separation */ $this->_module = CI::$APP->router->fetch_module(); }
public function __construct() { parent::__construct(); // Set the loader to use the default theme path. $this->set_theme($this->theme); }
public function __construct() { parent::__construct(); $CI =& get_instance(); $CI->load = $this; }
/** * Check & Set URI resource to determine the side of application * */ public function __construct() { parent::__construct(); $uri =& load_class('URI', 'core'); $admin = $uri->segment(1); $this->is_admin = $admin == 'administrator' || $admin == 'admin' ? true : false; }