View

If you want to print something on the output, you will use one of Framework's view components. There are not many of them, since there are not many ways how to visualize the data.

Component StaticHTML

This component just prints the specified template on the specified placement. All GET variables are published by default for the use withing the template

Configurable variables:

htmlthe name of the template to be printed
placementthe name of the placement where the template will be printed

Shorthand syntax:

<?
 $this->StaticHTML("html","placement");
?>

Component DataList

DataList component is the real backbone of the Framework. It is used for printing lists of data.

Configurable variables:

htmlthe name of the root template to be printed
itemsthe name of the templace to be iteratively printed for each row of data in placement items defined within the root template
emptythe name of the root template to be printed if the data is empty
datasourcesthe link or the array of links to the datasource(s).
placementthe name of the placement where the root template will be printed
listidthe id of the list to get from datasources
formatOutput format: html|JSON|json|htmljson. The default is html. For other values, see AJAX documentation.
enhancelistall|none. The default is all. Only the fetched list and distributed values are published, if the value is set to none
distributearray of key-value dublets to be distributed to all individual rows of the fetched list. See next line for possible override.
distribute_keythe name of the the array to be distributed. The default is distribute.