This repository was archived by the owner on Aug 26, 2025. It is now read-only.
How to export module? #14116
Answered
by
JohnMaverick
JohnMaverick
asked this question in
How to
|
How to export Reservation module, so it can be installed again (refreshed) in separate yetiforce application? |
Answered by
JohnMaverick
Jan 27, 2021
Replies: 2 comments
|
OK got it: require DIR . '/include/main/WebUI.php'; |
0 replies
Answer selected by
JohnMaverick
|
@JohnMaverick |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK got it:
require DIR . '/include/main/WebUI.php';
$moduleName = 'Leads';
$moduleModel = \vtlib\Module::getInstance($moduleName);
$package = new vtlib\PackageExport();
$package->export($moduleModel, '', sprintf('%s-%s.zip', $moduleModel->name, $moduleModel->version), true);