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


Tags

Anuj kumar

This is Anuj Kumar. I’m a professional web developer with 5+ years of experience. I write blogs in my free time. I love to learn new technologies and share with others. I founded PHPGurukul in September 2015. The main aim of this website to provide PHP, Jquery, MySQL, PHP Oops and other web development tutorials. .

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Back to top button
Close
Close