Hello Emiliano,
Saturday, July 15, 2000, 1:48:17 AM, you wrote:
>> mgd_list_snippetdirs() mgd_get_snippetdir() mgd_get_snippetdir_by_path()
>> mgd_create_snippetdir() mgd_update_snippetdir() mgd_delete_snippetdir()
>> mgd_copy_snippetdir() mgd_list_snippets() mgd_get_snippet()
>> mgd_get_snippet_by_name() mgd_create_snippet() mgd_update_snippet()
>> mgd_delete_snippet()
>>
>> No mention of mgd_include_snippet()!
> mgd_include_snippet is embedded directly in the language scanner. I wonder
> if there's another way to go about this.
Yes, that was a tricky step. I hope in PHP4 (where include() is a
function) mgd_include_snippet() will be a function too.
>> Is there another way to execute a snippet? Suppose I get it by its id
>> (rather than by path) using
>> $snippet = mgd_get_snippet($id);
>> Now what? Is there something like
>> $snippet->run();
> I suppose &(snippet.code:p); or <? eval $snippet->code; ?> should work
> too.
Yes. Adding run() method will be another hard task (that's why include()
is statement, not function in PHP3).
--
Best regards,
Alexander mailto:[EMAIL PROTECTED]
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]