(Midgard 1.4.2 'Bifrost')
mgd_get_snippet_by_name -- Get a snippet by its name
Description
object mgd_get_snippet_by_name
(int snippetdir, string name)
Minimum version: Midgard 1.4 (Bifrost)
Gets information about the snippet record in snippetdir
snippetdir and name name.
Returns an object describing the record if successful.
Returns FALSE on failure.
<?php
$snippet = mgd_get_snippet_by_name(13,"phpinfo");
echo $snippet->doc;
?>
|