diff options
author | Eric Barnes <eric@ericlbarnes.com> | 2011-09-11 20:00:26 +0200 |
---|---|---|
committer | Eric Barnes <eric@ericlbarnes.com> | 2011-09-11 20:00:26 +0200 |
commit | 869e3721d75e9798a706d24d93170f44e5ab6cb3 (patch) | |
tree | 1bd1e89d603e20582c559e35a61ed90f555bdd76 /user_guide/libraries/loader.html | |
parent | b66af1f8bfb9b207762caf4666e0437340293b6e (diff) |
Changed the add_package_path documentation to show the second param for view path loading.
Diffstat (limited to 'user_guide/libraries/loader.html')
-rw-r--r-- | user_guide/libraries/loader.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide/libraries/loader.html b/user_guide/libraries/loader.html index af27176ad..98864a700 100644 --- a/user_guide/libraries/loader.html +++ b/user_guide/libraries/loader.html @@ -241,9 +241,9 @@ $this->load->library('foo_bar');</code> <p>In this instance, it is possible for view naming collisions within packages to occur, and possibly the incorrect package being loaded. To ensure against this, set an optional second parameter of <var>FALSE</var> when calling <samp>add_package_path()</samp>.</p> <code> -$this->load->add_package_path(APPPATH.'my_app', TRUE);<br> +$this->load->add_package_path(APPPATH.'my_app', FALSE);<br> $this->load->view('my_app_index'); // Loads<br> -$this->load->view('welcome_message'); // Will not load the default welcome_message b/c the second param to add_package_path is TRUE<br> +$this->load->view('welcome_message'); // Will not load the default welcome_message b/c the second param to add_package_path is FALSE<br> <br> // Reset things<br> $this->load->remove_package_path(APPPATH.'my_app');<br> |