Demo module is a good place to start learning how to create a module for qEngine.
To use this module, please install it first, then you can learn from example.
See also /admin/module/demo/demo.zip to understand the file structure of a module. And finally, please refere to online documentation.
[ back to top ]
To create an installer for your module is quite simple, see /admin/module/demo/ini.xml for example. The .ini will be used by qEngine to create an automatic installer for you.
But you can also create your own installer, please see /admin/module/demo/_install.php for example.
Note: You have to rename it to install.php in order to make it work.
To install this this module in, follow these easy steps:
[ back to top ]
Upgrading usually done manually using an install.php file.
[ back to top ]
For configuration, you have to create it manually. You can use qAdmin if you want to. While this demo module doesn't have any configuration example, you can refer to qe_config.php to see how it is made.
Configurator file must be named configure.php, and placed in /admin/module/yourmodule, eg: please see /admin/module/demo/configure.php.
Later you can access it in ACP > Modules > Install/Uninstall.
[ back to top ]
This module doesn't do anything actually.
After installed, you can see that Demo Module is added to Modules drop down menu. Modules > Module Demo > Manage Data. Where you can input your sample data for demo. The demo is using qAdmin for data entry.
There are two files required by qEngine to display your module.
To add inline mode to your site:
To open outline mode of this demo, use this link: task.php?mod=demo
[ back to top ]
If your module needs any skin files, please put them in /skins/_common folder, eg: skins/_common/module_demo_window.tpl.
Later if you have multiple skins, you can create a special design for any skin by placing the same filename in your skin folder, eg: skins/myskin/module_demo_window.tpl
[ back to top ]
To create an uninstaller for your module is quite simple, see /admin/module/demo/ini.xml for example. The .ini will be used by qEngine to create an automatic uninstaller for you. But you can also create your own uninstaller, please see /admin/module/demo/_uninstall.php for example. You have to rename it to uninstall.php in order to make it work.
To uninstall this module, follow these easy steps:
Uninstalling may require you to manually remove some files for 100% clean uninstall.
[ back to top ]
Demo Module
This module is created by C97.net. You can contact us at: contact@c97.net,
or visit the website in: http://www.c97.net
© C97.net
[ back to top ]