/usr/lib/module
Directory in Your Zigmoyd Installation Directory.
To Load a module You can simply do load_module('modue_name')
.
You can also load it through global $load
variable $load->module('module_name')
.
You can also use $this->load->module('module_name')
to load a module from your Controller.
To create a module first create a file in /usr/lib/module
Directory in your Zigmoyd Installation directory. you can put functions/Classes/anything in it.
Then activate that module by going to /etc/class.ini.php
Configuration File which is a simple INI File. There you will find a <nowiki>[module]</nowiki>
Block.
and at the end of that block write moduleName = path/to/module/file.php
remember this path/to/module/file.php
is relative to /usr/lib/module
/usr/lib/plugin
Directory in Your Zigmoyd Installation Directory.
To Load a plugin You can simply do load_plugin('plugin_name')
.
You can also load it through global $load
variable $load->plugin('plugin_name')
.
You can also use $this->load->plugin('plugin_name')
to load a plugin from your Controller.
To create a Plugin first create a file in /usr/lib/plugin
Directory in your Zigmoyd Installation directory. you can put functions/Classes/anything in it.
Then activate that Plugin by going to /etc/class.ini.php
Configuration File which is a simple INI File. There you will find a <nowiki>[plugin]</nowiki>
Block.
and at the end of that block write pluginName = path/to/plugin/file.php
remember this path/to/plugin/file.php
is relative to /usr/lib/plugin
That are loaded using $this->load->lib('libName')
from Controller.
can also be loaded through $load
global variable using $load->lib('libName')
from Controller.
can also be loaded through load_lib('libName')
function.
all Libs are located in usr/local/lib/
Directory in your Project's Directory.all libs have an extension .lib.php
libName.lib.php
in usr/local/lib/
Directory in your Project's Directory. and then load it by issuing $this->load->lib('libName')
. you can use all other ways too.$load->listPlugins()
through $load
global variable or $this->load->listPlugins()
from your Controller to get a list of plugins availables that you can load. $load->listPlugins()
through $load
global variable or $this->load->listPlugins()
from your Controller to get a list of plugins availables that you can load.