Please, help.
How to cause from a code in page the function described in snippet?
For example, in snippet 'b' in snippetdir 'a' described function foo() { echo "foo"; }.
In the documentation, unfortunately, there is no suitable example.
I'm not quite sure I understand the question but a quick introduction to snippets:
Snippets can be included using the mgd_include_snippet() -function which behaves much like the PHP include() function, there is no require() or include_once() equivalent however so if there is a possibility that a snippet where functions are defined is called multiple times add if (function_exists()) { } around your function definitions.
So if a function is defined in a snippet and you wish to use in on a page you can use the following code:
<?php
mgd_include_snippet("Path/to/snippet");
myfunction();
?>/Rambo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
