> > $snippet=mgd_get_snippet(...)
> >
> > I CAN access such field of a snippet as "id" or "name" or "up":
> >
> > $snippet->id
> >
> > but $snippet->code seems to produce NOTHING. Can I get a snippet code to
> > manipulate it in a php program?
>
> What's above should be right. Did you mgd_get the snippet, or
mgd_get

> mgd_list/fetch it? What does a print_r of the object show?
print_r outputs strings like the following

MidgardSnippet Object ( [__table__] => snippet [id] => 1197 [sitegroup] => 0
[up] => 197 [name] => Activity [code] => [doc] => ....

which shows EMPTY code property. But mgd_include_snippet(...) with the path
to the same snippet DOES INCLUDE it!

Vic


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to