|
By adding PHP code snippets you can modify the appearance and
fucntionality of the prebuilt web pages. For example, you can add
additional control elements to a web page or display some
information.
To add a PHP code snippet, follow the instructions below.
-
Proceed to the Visual
Editor page and select a page you wish to modify.
-
Click (Insert PHP code snippet)
button on the Main toolbar.
-
Add you PHP code and click OK.
-
New page element labeled <Table name>_Snippet will appear
on the page. If your code snippet displays some data on a web page,
move the "snippet" element to where you wish to see that data.
To edit a code snippet, double-click on the "snippet" element or
select Edit code with
right-mouse button. Also you can edit a code snippet on the
Events page.
To delete a code snippet, select Delete event with right-mouse
button.
Examples of code snippets usage
1. Display current time.
PHP code:
2. Add dropdown
list box with values for search.
3. Show customer
orders.
4. Show
data from master table on detail view/edit/add page.
|