[pmwiki-users] $FmtPV in skin.php

DaveG pmwiki at solidgone.com
Wed May 30 22:33:06 CDT 2007


I actually tried declaring as global (having been bitten by that already 
today), but didn't have executable code.

Thanks to both of you.

  ~ ~ Dave

Patrick R. Michaud wrote:
> 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