add_package_path() public method

Prepends a parent path to the library, model, helper and config path arrays.
See also: CI_Loader::$_ci_library_paths
See also: CI_Loader::$_ci_model_paths
See also: CI_Loader::$_ci_helper_paths
See also: CI_Config::$_config_paths
public add_package_path ( string $path, boolean $view_cascade = TRUE ) : object
$path string Path to add
$view_cascade boolean (default: TRUE)
return object
Exemplo n.º 1
0
 public function add_package_path($path, $view_cascade = TRUE)
 {
     $path = rtrim($path, '/') . '/';
     // reekoheek: avoid multi packages to be added to paths
     if (in_array($path, $this->_ci_library_paths)) {
         return;
     }
     return parent::add_package_path($path, $view_cascade);
 }
 /**
  * Add Package Path
  *
  * Extends package path to allow the form
  * paths
  *
  * @param string $path
  */
 public function add_package_path($path)
 {
     $path = rtrim($path, '/') . '/';
     array_unshift($this->_ci_form_paths, $path);
     parent::add_package_path($path);
 }
Exemplo n.º 3
0
 /**
  * Add Module
  *
  * Allow resources to be loaded from this module path
  *
  * @param	string
  * @param 	boolean
  */
 public function add_module($module, $view_cascade = TRUE)
 {
     if ($path = $this->find_module($module)) {
         // Mark module as loaded
         array_unshift($this->_ci_modules, $module);
         // Add package path
         parent::add_package_path($path, $view_cascade);
     }
 }
Exemplo n.º 4
0
 public function add_package_path($path, $view_cascade = TRUE)
 {
     $path = rtrim($path, '/') . '/';
     array_unshift($this->_ci_widget_paths, $path);
     parent::add_package_path($path, $view_cascade);
 }