Run exampleDownload example
First code to be executed.
Same as 'exec' directive, only that is executed right after 'use' directive; you can create a 'return' child directive and result is put in $GLOBALS["APPINIT"][returnDirectiveText]; (ex. when connecting to a database,...)
Context: direct child of //app
Remarks: "return" child directive is optional; when defined will the result of the init directive will be found in $GLOBALS["APPINIT"][returnDirectiveText]
Writing function code (connecting to a database)
Exporting result in global context (db connection as $GLOBALS["APPINIT"]["PDO"])
Using the result (get query result as assoc array as resource for domiterator)