Install the App?
Forum
Questions and answers
If you need help about ZnetDK for Mobile, please post your questions on the SOURCEFORGE Discussion page of ZnetDK by clicking the button below.
Topics
Hello,
The new version 3.5 of ZnetDK 4 Mobile is released.
- Improvement of the
z4m.autocomplete
widget. - W3.CSS is upgraded to version 5.02.
- ARIA attributes added to the
z4m.autocomplete
andz4m.modal
widgets for a better accessibility. - New
\DAO::addCondition()
method to add easily SQL conditions to the SQL query of a DAO. - Extra 4 minor changes.
- Fixed 10 minor software bugs.
- This version is compatible with PHP 8.4.
To get all changes and bug fixes, see CHANGELOG page.
Pascal,
ZnetDK developer
Hello,
The new version 3.4 of ZnetDK 4 Mobile is released.
- New dark and light themes.
- The theme colors applied to the app UI are slightly changed for better color contrast.
- Extra 16 minor changes.
- Fixed 25 minor software bugs.
- This version is compatible with PHP 8.4.
To get all changes and bug fixes, see CHANGELOG page.
Pascal,
ZnetDK developer
Hello,
A new CRUD code generator is proposed to ZnetDK 4 Mobile developers in order to accelerate development of new features for their Web Application.
For that, go to the ZnetDK 4 Mobile web site at https://mobile.znetdk.fr/crud_code_generator, enter the entity name (for example "Book"), its properties (for example "Author", "Publication date", "Title", ...), choose an icon, the unique prefix for HTML the elements, the controller name, the SQL Table name and click the "Generate" button.
The source code can be visualized, pasted to clipboard and download as a ZIP archive.
This code generator is also available on GitHub at https://github.com/pascal-martinez/z4m_codegen and can be downloaded to be used directly from your development environment.
Have fun developing with ZnetDK 4 Mobile,
Pascal MARTINEZ
Hello,
The new version 3.3 of ZnetDK 4 Mobile is released.
- Security, login throttling: login locked out during 60 seconds in case of 5 login failures occurred in a 30 seconds time window for the same login name.
- Security, user account no longer disabled: by default, user account is no longer disabled after 3 login failures (see CFG_NBR_FAILED_AUTHENT).
- Security, login in session context: the login process is only allowed if the session cookie received by downloading the login page, is transmitted in the request HTTP header.
- Visual password compliance: as a new password is entered, compliance with the password entry rules (minimum length, upper and lower case letters, numbers, etc.) is displayed dynamically.
- User management API: new \User class to add, modify and remove users in PHP easily (for example to add a user from a subscription form).
- User removal hook: Users::onRemove() method called on user removal to delete custom user rows in database.
- A modal dialog is closable by pressing the ESC key.
- W3.CSS library upgraded to version 4.15.
- Extra 10 minor changes.
- Fixed 9 minor software bugs.
- This version is compatible with PHP 8.3.
To get all changes and bug fixes, see CHANGELOG page.
Pascal,
ZnetDK developer
Hello,
The new version 3.2 of ZnetDK 4 Mobile is released.
- Users can now log in using their email address instead of their login ID.
- The user's login ID can be specified via the login GET parameter.
- The confirmation dialog displayed when the user leaves the application page is now only displayed if form data has been modified but not saved.
- Extra HTML code can be injected at the end of the page layout by the application or a module.
- A custom theme can be set programmatically for the logged in user.
- the jQuery library shipped with ZnetDK 4 Mobile was updated to version 3.7.1.
- Fixed 13 minor software bugs.
- This version is compatible with PHP 8.3.
To get all changes and bug fixes, see CHANGELOG page.
Pascal,
ZnetDK developer
Hello,
The new version 3.1 of ZnetDK 4 Mobile is released.
- Application accessibility is improved : keyboard navigation, labels associated to their entry field, ...
- New features to track controller action and SQL query performance.
- Fixed 7 minor software bugs.
- This version is compatible with PHP 8.2.
To get all changes and bug fixes, see CHANGELOG page.
Pascal,
ZnetDK developer
Hello,
The new version 3.0 of ZnetDK 4 Mobile is released.
- A total of 7 improvements to strengthen application security: automatically generated
.htaccess
, token to prevent CSRF attacks, limitation of connections by login identifier, critical errors hidden from the user, limitation of access to authorization management , ... - Minor adaptations to make ZnetDK fully compatible with PHP 8.2 in this version.
- Fixed 19 minor software bugs.
To get all changes and bug fixes, see CHANGELOG page.
Pascal,
ZnetDK developer
Hello,
To replace the W3.CSS framework with another CSS framework such as Bootstrap, you mainly need to modify the scripts engine/core/layout/mobile.php
(HTML5 structure of the application page) and engine/public /js/mobile.js
(JavaScript API needed for authentication, navigation menu management, sending AJAX requests etc.).
To continue to easily install the next versions of ZnetDK after changing the CSS framework, I advise you not to directly modify the ZnetDK 4 Mobile scripts located in the engine/core/
and engine/public
folders.
Instead, here is the procedure that I advise you to follow:
- Copy
INSTALL_DIR/engine/core/layout/mobile.php
script toINSTALL_DIR/applications/default/app/layout/
folder.
TheINSTALL_DIR/applications/default/app/layout/mobile.php
script thus becomes the new page template loaded to display the application.
It is to be customized so that the CSS classes correspond to the new CSS framework chosen to replace W3.CSS. - Copy the
INSTALL_DIR/engine/public/js/mobile.js
script to theINSTALL_DIR/applications/default/public/js/
folder.
TheINSTALL_DIR/applications/default/public/js/mobile.js
script is to be adapted to the new CSS framework chosen to replace W3.CSS. - Add the following empty files (to be completed later):
INSTALL_DIR/applications/default/public/css/my_framework.css
: the CSS framework styles replacing W3.CSS
INSTALL_DIR/applications/default/public/css/my_layout.css
: styles specific to the mobile.php custom page template. - Edit the
INSTALL_DIR/applications/default/app/config.php
script and modify the following parameters:
define('CFG_MOBILE_W3_CSS','applications/'.ZNETDK_APP_NAME.'/public/css/my_framework.css');
define('CFG_ZNETDK_CSS','applications/'.ZNETDK_APP_NAME.'/public/css/my_layout.css');
define('CFG_MOBILE_W3CSS_THEME', NULL); // to not load the style sheet INSTALL_DIR/resources/w3css/themes/w3-theme-blue.css
define('CFG_DEV_JS_ENABLED', TRUE); // Load unminified version of mobile.js
define('CFG_ZNETDK_JS_DIR', 'applications/'.ZNETDK_APP_NAME.'/public/js'); // Load custom mobile.js instead of the standard script.
If you need to load extra JavaScript and CSS scripts, see the description of the CFG_APPLICATION_CSS
and CFG_APP_JS
parameters (see page http://localhost/znetdk4mobile-website/settings#z4m-settings-libraries).
To change the ZnetDK icons, refer to the procedure described on the page http://localhost/znetdk4mobile-website/getting-started#z4m-gs-custom-logos
The most complicated now is to adapt the scripts INSTALL_DIR/applications/default/app/layout/mobile.php
and INSTALL_DIR/applications/default/public/js/mobile.js
to the new CSS framework.
Hope this post will be useful to you.
Pascal MARTINEZ
ZnetDK developper
Ante todo gracias por tu respuesta, si lo que hago es pasarlo al layout custom, tengo que dejar o cambiar estas constantes que aparecen en el config.php que esta en el engine/core? o por el contrario todos los js,css esten o no minificados los cargo desde el config.php que esta en \applications\default\app? son compatibles todas las constantes o hay que eliminar alguna?
/** Relative path of the jQuery CSS file */
define('CFG_JQUERYUI_CSS','resources/jquery-ui-1.10.3/themes/base/minified/jquery-ui.min.css');
/** Relative path of the PrimeUI CSS file */
define('CFG_PRIMEUI_CSS','resources/primeui-1.1/production/primeui-1.1-min.css');
/** Relative path of the FontAwesome CSS file */
define('CFG_FONTAWESOME_CSS','resources/font-awesome-4.7.0/css/font-awesome.min.css');
/** Relative path of the W3CSS file (for mobile layout) */
define('CFG_MOBILE_W3_CSS','resources/w3css/w3.css');
/** Relative path of the ZnetDK CSS files */
define('CFG_ZNETDK_CSS','engine/public/css/minified/%1-min.css');
/** Relative path of the CSS file specially developed for the application
* Extra CDN CSS libraries can also be included in the application by
* specifying its URL (for example 'https://extracsslibrary.net/lib.css').
* At last, several libraries can be set using a serialized array. For example:
* <code>serialize(array(
* 'applications/' . ZNETDK_APP_NAME . '/public/css/myscript.css',
* 'https://extracsslibrary.net/lib.css'))</code>
*/
define('CFG_APPLICATION_CSS',NULL);
Gracias
Buenos dias,
ZnetDK 4 Mobile no está diseñado para funcionar con el framework CSS de Bootstrap.
Reemplazar las clases de w3css con las de Bootstrap en la vista 'contactlist.php' no será suficiente para que ZnetDK 4 Mobile funcione.
También es necesario modificar las clases CSS en el script 'engine/public/js/mobile.js', en la hoja de estilo 'engine/public/css/mobile.css' y en la plantilla de página 'engine/core/layout /móvil.php'.
Este es un proyecto completo que es técnicamente factible pero requiere un esfuerzo de desarrollo bastante significativo.
Salud
Pascal MARTINEZ