Skip to content

pascal-martinez/z4m_codegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZnetDK 4 Mobile module: Code Generator (z4m_codegen)

Screenshot of the CRUD Code Generator view provided by the ZnetDK 4 Mobile 'z4m_codegen' module

The z4m_codegen module allows to generate CRUD code for managing your custom data in your ZnetDK 4 Mobile Starter Application.

See demonstation at Code Generator page.

LICENCE

This module is published under the version 3 of GPL General Public Licence.

USAGE

In the code generator form, enter an entity name, for example Book if you want to manage a file of books.

Next, enter the properties of the entity. For a book, they could be a title, a publication date, a summary, the number of pages and so forth.

Finally, choose an icon to display for the generated view, the prefix to use for HTML element identifiers, the App controller name, the SQL table name, the location of the generated code (module or application) and the DAO class to use, then click the Get the code button.

REQUIREMENTS

INSTALLATION

  1. Add a new subdirectory named z4m_codegen within the ./engine/modules/ subdirectory of your ZnetDK 4 Mobile starter App,
  2. Copy module's code in the new ./engine/modules/z4m_codegen/ subdirectory, or from your IDE, pull the code from this module's GitHub repository,
  3. Edit the App's menu.php located in the ./applications/default/app/ subfolder and include the menu.inc script to add menu item definition for the z4m_codegen view.
require ZNETDK_MOD_ROOT . '/z4m_codegen/mod/menu.inc';
  1. Go to the Code Generator menu and generate your CRUD code.

CHANGE LOG

See CHANGELOG.md file.

CONTRIBUTING

Your contribution to the ZnetDK 4 Mobile project is welcome. Please refer to the CONTRIBUTING.md file.