Loading Please wait...

Zigmoyd modularity

Zigmoyd is highly Modular even its own components are splitted into numerous Plugins that are preloaded or loaded on demand.
zLoader.png
It has several kinds of reusable Components Modules, Plugins, Libs libs. the activity of loading modules or plugins or libs are mainly done by zLoader and friends which belongs to Zigmoyd's loader Utilities. Group

Modules

Modules are cross Projects. e.g. You cant make a module for a particular project only. all modules are stored into /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.

Internal

Actually a file is treated as a module. and you make a file on the module's directory. and then list that file as a modules in the list of active plugins in an INI File.

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

Plugins

Plugins are cross Projects. e.g. You cant make a plugin for a particular project only. all Plugins are stored into /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.

Internal

Actually a file is treated as a plugin. and you make a file on the plugin's directory. and then list that file as a plugins in the list of active plugins in an INI File.

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

Libs

Libs are not Cross Project. e.g. Libs are Project Specific.You can make a lib for a particular project only. Lib is also a file like Modules/Plugins.

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

Internal

To create a lib for your Project create a file 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.

Available Plugins and Plugins

modules

You can invoke $load->listPlugins() through $load global variable or $this->load->listPlugins() from your Controller to get a list of plugins availables that you can load.

plugins

You can invoke $load->listPlugins() through $load global variable or $this->load->listPlugins() from your Controller to get a list of plugins availables that you can load.

Generated on Mon Oct 27 23:51:58 2008 for zigmoyd.kdevelop by doxygen 1.5.6