31,003
edits
m (→Using MDA) |
|||
| Line 73: | Line 73: | ||
A file '''out.tablename_script.php''' has been generated and contains a sample code to use the class for each of the 4 CRUD methods. | A file '''out.tablename_script.php''' has been generated and contains a sample code to use the class for each of the 4 CRUD methods. | ||
= | = Add your own tabs on entities sheets (optionnal) = | ||
{{ToTranslate}} | {{ToTranslate}} | ||
''' | '''When''': To add a tab on an entity (invoices, orders, proposals, member ...) | ||
To do this go into the file descriptor of module previously created and edit the $this->tabs array: | |||
<pre> | <pre> | ||
// Array to add new pages in new tabs | // Array to add new pages in new tabs | ||
| Line 93: | Line 94: | ||
</pre> | </pre> | ||
The table should contain a list of strings, each string representing a new tab. | |||
The format of the string consisting of 4 parts separated by ":" | |||
* | * Part 1: The entity code which should appear in the tab is a value from the following: | ||
** 'thirdparty' | ** 'thirdparty' | ||
** 'intervention' | ** 'intervention' | ||
| Line 105: | Line 106: | ||
** 'propal' | ** 'propal' | ||
** 'member' | ** 'member' | ||
* | * Part 2: The title of the tab. This can be a hard read or better code translation in a file lang. | ||
* | * Part 3: The name of the file. Lang which contains correspondence between the code translation and language to display. | ||
* | * Part 4: The url of the page to display when you click on the tab. The __ID__ string will be replaced automatically by the Id of the entity concerned. | ||
To feed the contents of the tab with data from the database, see the next chapter. | |||
= Créer vos pages écran PHP (optionnel) = | = Créer vos pages écran PHP (optionnel) = | ||