Tuesday, November 13, 2012

Plugins, Library, Helpers In Codeigniter



1. Plugin

Codeigniter plugin consists of a single function. It is almost the same as the helper, but the number of helper functions on more than one.

Plugins are stored in a folder in codeigniter system / plugins. We can also mmebuat plugin itself and we save the folder application / plugins.

For meloadnya we run the function:

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

2. Library

Library on Codeigniter contained in the folder system / libraries.
The function is used to call the library are:

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

3.Helpers

              Helpers is a collection of functions that can do specific tasks. To be able to use the helper.

Helper files contained in the folder system / application / helpers or / system / helpers.

To call a helper function used is:

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

            If we want to load a lot of helpers we can use an array containing the names of helpers that we want to load. How to use dalah such as by calling the PHP function call.

No comments:

Post a Comment