diff options
author | admin <devnull@localhost> | 2006-09-21 01:34:10 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-21 01:34:10 +0200 |
commit | bf3ad9bc881d75d1ded09905bf965699ea46a6d3 (patch) | |
tree | bab44f25d0f8fa8439c561d74c38ea6258f436ad /user_guide | |
parent | 0fce0f2fcf04db02a1633c155f9d6af3a95c5aa6 (diff) |
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/general/plugins.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/user_guide/general/plugins.html b/user_guide/general/plugins.html index c28dd321f..ca65ea369 100644 --- a/user_guide/general/plugins.html +++ b/user_guide/general/plugins.html @@ -67,6 +67,11 @@ Plugins provides a single function, whereas a Helper is usually a collection of functions. Helpers are also considerd a part of
the core system; plugins are intended to be created and shared by our community.</p>
+<p>Plugins should be saved to your <dfn>system/plugins</dfn> directory or you can create a folder called <kbd>plugins</kbd> inside
+your <kbd>application</kbd> folder and store them there. Code Igniter will look first in your <dfn>system/application/plugins</dfn>
+directory. If the direcotry does not exist or the specified plugin is not located there CI will instead look in your global
+<dfn>system/plugins</dfn> folder.</p>
+
<h2>Loading a Plugin</h2>
@@ -80,6 +85,8 @@ the core system; plugins are intended to be created and shared by our community. <code>$this->load->plugin('<var>captcha</var>');</code>
+
+
<p>A plugin can be loaded anywhere within your <a href="../general/controllers.html">controller</a> functions (or even within your <a href="../general/views.html">View files</a>, although that's not a good practice),
as long as you load it before you use it. You can load your plugins in your controller constructor so that they become available
automatically in any function, or you can load a plugin in a specific function that needs it.</p>
|