[pmwiki-users] $FmtPV in skin.php

Patrick R. Michaud pmichaud at pobox.com
Wed May 30 20:43:44 CDT 2007


On Wed, May 30, 2007 at 08:47:55PM -0400, DaveG wrote:
> Is it possible to declare a variable to be used within a page from ski.php?
>     $FmtPV['$MyVar'] = 'xyz';
> 
> Currently it seems like it doesn't set the variable.

1.  Is $FmtPV declared global in skin.php?  ;-)

2.  The values of $FmtPV are executable code.
    So, if you want {$MyVar} to return the string 'xyz'
    it needs to be written as

      $FmtPV['$MyVar'] = "'xyz'";

Pm



More information about the pmwiki-users mailing list