CI_Loader::remove_package_path()

remove_package_path([$path = ''])

Parameters:
  • $path (string) – Path to remove
Returns:

CI_Loader instance (method chaining)

Return type:

CI_Loader

When your controller is finished using resources from an application package, and particularly if you have other application packages you want to work with, you may wish to remove the package path so the Loader no longer looks in that directory for resources. To remove the last path added, simply call the method with no parameters.

Or to remove a specific package path, specify the same path previously given to add_package_path() for a package.:

$this->load->remove_package_path(APPPATH.'third_party/foo_bar/');
doc_CodeIgniter
2016-10-15 16:31:45
Comments
Leave a Comment

Please login to continue.