[pmwiki-users] Fwd: Case of vanishing FmtPV
The Editor
editor at fast.st
Sun Sep 17 18:53:06 CDT 2006
Thanks for the suggestion Ian. I thought for sure it was something
along these lines when I remembered $log was a global variable used
elsewhere, so I rewrote the code to use a different, unique variable.
But it still didn't work.
As for your question, when I uncomment the first line, I get the right
value returned for GetLog. Exactly what I want. When I uncomment the
second line I get "hi" exactly where I want. So the page variable is
setting right.
BUT with both lines commented I get a blank where my value is supposed
to be. And there's no intermediary lines that might be messing things
up. Any other suggestions?
case "logid" :
// return GetLog($d,$_GET[logid]);
// $FmtPV['$logid'] = "hi";
$FmtPV['$logid'] = GetLog($d,$_GET[logid]);
break;
And as for Ben similar experience, I take it you never solved the
problem successfully? Would you be willing to explain the method you
used to get the string value into a page if you didn't use page
variables? Perhaps I could do something similar. (My second choice).
I take it these page variables are just a bit buggy... Well, bug me
at least. :)
Cheers,
Caveman
On 9/15/06, Ian Barton <lists at manor-farm.org> wrote:
> That would suggest that something lower down in your function is
> overwriting the value of $log.
>
> Have you tried hard coding the value as in:
>
> $FmtPV['$log'] = "My test string";
>
> and seeing if the Page Variable returns your hard coded value;
>
> Ian.
On 9/15/06, Ben Stallings <Ben at interdependentweb.com> wrote:
> If it's any consolation, I had the exact same problem when I was writing
> SelectQuery, which is why I wound up inventing my own idiosyncratic
> markup and probably annoying Pm no end. :-S
More information about the pmwiki-users
mailing list