Codeigniter

CodeIgniter Plugins

Plugins work in almost exactly the same way as Helpers. The main difference is that a plugin should be used to add a single function, instead of a collection of functions.Helpers are also considered to be part of the core framework, whereas plugins are intended to be created and shared by the community. Plugins are stored inside the
system/application/plugins/ folder.
Loading a plugin
Loading a plugin is almost the same as loading a helper. The only difference is the function used.

$this->load->plugin('name');

Where name is the name of the plugin you wish to load.
Loading multiple plugins
To load more than one plugin, simply pass an array to the load function.

$this->load->plugin( array('name1', 'name2', 'name3') );

Using a plugin
Once a plugin is loaded, you simply call it in the same way as you would call a standard PHP function.

Recommended Tutorials for you


Related posts

CodeIgniter Helpers

Anuj Kumar

Database interaction in CodeIgniter

Anuj Kumar

Validation rules to a config file in CodeIgniter

Anuj Kumar

How to create form in CodeIgniter

Anuj Kumar

CodeIgniter Libraries

Anuj Kumar

CodeIgniter Model

Anuj Kumar

CodeIgniter Interview Questions and Answers

Anuj Kumar

CRUD operation in CodeIgniter

Anuj Kumar

Form Validation in CodeIgniter

Anuj Kumar

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.