The z4m_appdownload module allows you to download the software code, data, and documents of the ZnetDK 4 Mobile starter application for backup purposes or to transfer the application to a new web host.
This module is published under the version 3 of GPL General Public Licence.
This module contains the z4m_appdownload
view to declare within the menu.php
of the application.
This view shows 3 buttons to download in a ZIP archive the software code of the application, its data and its documents.
The procedure to install the application on a new web hosting can also be displayed.
- ZnetDK 4 Mobile version 2.9 or higher.
- Add a new subdirectory named
z4m_appdownload
within the./engine/modules/
subdirectory of your ZnetDK 4 Mobile starter App, - Copy module's code in the new
./engine/modules/z4m_appdownload/
subdirectory, or from your IDE, pull the code from this module's GitHub repository, - Edit the App's
menu.php
located in the./applications/default/app/
subfolder and add a new menu item definition for the viewz4m_appdownload
. For example:
\MenuManager::addMenuItem(NULL, 'z4m_appdownload', MOD_Z4M_APPDOWNLOAD_MENU_LABEL, 'fa-cloud-download');
- Go to the Download the APP menu to display the module's view.
Once the Download the APP menu item is added to the application, you can restrict
its access via a user profile.
For example:
- Create a user profile named
Admin
from the Authorizations | Profiles menu, - Select for this new profile, the Download the APP menu item,
- Finally for each allowed user, add them the
Admin
profile from the Authorizations | Users menu.
This module is translated in French, English and Spanish languages.
To translate this module in another language or change the standard
translations:
- Copy in the clipboard the PHP constants declared within the
locale_en.php
script of the module, - Paste them from the clipboard within the
locale.php
script of your application, - Translate each text associated with these PHP constants into your own language.
- Copy the
z4m_appdownload_instructions_en.php
script of the module in the./application/default/app/view/
subfolder of your application, - Remove the
_en
suffix to the copied PHP script so it is renamed toz4m_appdownload_instructions.php
. - Translate into your own language the text within the
z4m_appdownload_instructions.php
script.
See CHANGELOG.md file.
Your contribution to the ZnetDK 4 Mobile project is welcome. Please refer to the CONTRIBUTING.md file.