

globalcode - common code to be inserted to Global Code (see below), this code will only be inserted once into the project.description - description of the reusable code.The format of the XML files is simple, there are 3 parts: The reusable code is stored in XML files which reside in s subfolder name "code" under the installation folder. You can add the code to the editor by clicking the button, or by double-clicking the item, or simply drag the item to the editor. Click the īutton to open it, categorized reusable code will be displayed: PHPMaker provides a Code Repository for easy reuse of your code across You can click the button to discard the existing code and reset template code for the server event or client script. Press Ctrl-F to open the Find dialog and press Ctrl-H to open the Replace dialog. To add your custom scripts to the server events or client scripts, selectĪn item in the treeview, then enter your code in the editor. The JavaScript are included in some common pages in the project only The JavaScript are table-specific, they are included to pages for the selected table only The JavaScript are included in all pages with header and footer The events are applicable to some common pages in the project only

The set of events are table-specific, the events are applicable to the selected table only The events are applicable to all PHP pages The treeview shows the available server events and client scripts that you can add to your project: Server Events

A database object can be either a table, a view, a custom view or a report. Note: For simplicity, we use "table" in the following description to refer to any of database object in the project. Views and reports) will be shown in the left pane (the database pane).Ĭlick on any table to go to the Field Setup Page and then select the Code tab (which contains Server Events, Client Scripts and Custom Templates). Reduces the need of template customization and create maximum possibilitiesįor you to customize and create more advanced features for your projects.Īfter loading the database, the database objects (tables, views, custom Your project to other templates or future versions easily. Your code is stored in the project so you can migrate Your own business logic by writing your own server events and client scipts.
