Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit e9fcf06

Browse files
committed
✨ add thirdparty path
Signed-off-by: otengkwame <[email protected]>
1 parent c51575f commit e9fcf06

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

framework/core/Loader.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,21 @@ class CI_Loader {
7070
*
7171
* @var array
7272
*/
73-
protected $_ci_library_paths = [APPPATH, BASEPATH];
73+
protected $_ci_library_paths = [APPPATH, BASEPATH, THIRDPARTYPATH];
7474

7575
/**
7676
* List of paths to load models from
7777
*
7878
* @var array
7979
*/
80-
protected $_ci_model_paths = [APPPATH];
80+
protected $_ci_model_paths = [APPPATH, THIRDPARTYPATH];
8181

8282
/**
8383
* List of paths to load helpers from
8484
*
8585
* @var array
8686
*/
87-
protected $_ci_helper_paths = [APPPATH, BASEPATH];
87+
protected $_ci_helper_paths = [APPPATH, BASEPATH, THIRDPARTYPATH];
8888

8989
/**
9090
* List of cached variables
@@ -855,9 +855,9 @@ public function remove_package_path($path = '')
855855
}
856856

857857
// make sure the application default paths are still in the array
858-
$this->_ci_library_paths = array_unique(array_merge($this->_ci_library_paths, [APPPATH, BASEPATH]));
859-
$this->_ci_helper_paths = array_unique(array_merge($this->_ci_helper_paths, [APPPATH, BASEPATH]));
860-
$this->_ci_model_paths = array_unique(array_merge($this->_ci_model_paths, [APPPATH]));
858+
$this->_ci_library_paths = array_unique(array_merge($this->_ci_library_paths, [APPPATH, BASEPATH, THIRDPARTYPATH]));
859+
$this->_ci_helper_paths = array_unique(array_merge($this->_ci_helper_paths, [APPPATH, BASEPATH, THIRDPARTYPATH]));
860+
$this->_ci_model_paths = array_unique(array_merge($this->_ci_model_paths, [APPPATH, THIRDPARTYPATH]));
861861
$this->_ci_view_paths = array_merge($this->_ci_view_paths, [APPPATH.'views/' => true]);
862862
$config->_config_paths = array_unique(array_merge($config->_config_paths, [APPPATH]));
863863

@@ -1405,7 +1405,7 @@ protected function _ci_prepare_view_vars($vars)
14051405
* Get a reference to a specific library or model.
14061406
*
14071407
* @param string $component Component name
1408-
* @return bool
1408+
*
14091409
*/
14101410
protected function &_ci_get_component($component)
14111411
{

0 commit comments

Comments
 (0)