[pmwiki-users] reality check: $Group variable
Patrick R. Michaud
pmichaud at pobox.com
Thu Jun 15 11:13:55 CDT 2006
On Sun, Jun 11, 2006 at 12:47:23PM -0700, Martin Fick wrote:
> --- Henrik Bechmann <henrik at bechmannsoftware.com>
> wrote:
> > I note that the rather basic $Group variable in not
> > included in the list
> > of variables at
> > http://www.pmwiki.org/wiki/PmWiki/Variables.
> > Oversight
> > or deprecated?
>
> From that page:
>
> "Note not to confuse these variables (set and used
> only in PHP) with page variables"
Martin is correct, there's not a PHP variable called
$Group (or $Name, or $FullName, etc.) in PmWiki. There's
only the {$Group} page variable, which is handled by
various string substitutions.
For backwards compatibility the sequence $Group without
the curlies is also honored, but it's still not a PHP
global variable and is deprecated in favor of {$Group}
(which I think is also faster).
Pm
More information about the pmwiki-users
mailing list