POOF also supports modules. Modules can be added to a class to increase the functionality of it and the classes that inherit it.
To use a module you have to add it into you class by using the command,
$this->add_module('Module_Name');
Modules will be included into the base Page through the "::" operator. They will not be instantialised because we are merging the methods of the module into the Base class. You can then access the modules methods by using,
mod_Module_Name::Module_Method();
To create a module, make the module class name "mod_Class_Name". The module file name should be "Class_Name.mod.php". Put the files in the modules folder. You can include necessary classes into the mod file.
|