mpfserver Manual
 
 
 Examples | display server configuration errors
display tree-view of all debug-variables
the following examples shows how to display all variables from debug-variable tree, but the same concept may be used to display user-defined variable-trees.
1) create include file for (child-) variables:
put the following code to include-file (tmpl/lib/debug.htm).
{mpf:{mpf:path}}
{mpf:var/type||!=array}
{mpf:path}/{mpf:var/key}={mpf:{mpf:path}/{mpf:var/key}}
{/mpf:var/type||!=array}
{mpf:var/type||==array}
{mpf:include=tmpl/lib/debug.htm||path={mpf:path}/{mpf:var/key}}
{mpf:set=path||data=debug}
{/mpf:var/type||==array}
{/mpf:{mpf:path}}
2) display tree:
now you may display all debug-variables using an include-token with the following structure.
debug
{mpf:include=tmpl/lib/debug.htm||path=debug}
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).