From bf3ad9bc881d75d1ded09905bf965699ea46a6d3 Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 20 Sep 2006 23:34:10 +0000 Subject: --- user_guide/general/plugins.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'user_guide/general/plugins.html') 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.

+

Plugins should be saved to your system/plugins directory or you can create a folder called plugins inside +your application folder and store them there. Code Igniter will look first in your system/application/plugins +directory. If the direcotry does not exist or the specified plugin is not located there CI will instead look in your global +system/plugins folder.

+

Loading a Plugin

@@ -80,6 +85,8 @@ the core system; plugins are intended to be created and shared by our community. $this->load->plugin('captcha'); + +

A plugin can be loaded anywhere within your controller functions (or even within your View files, 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.

-- cgit v1.2.3-24-g4f1b