By: Trent
Date: 2007-01-15
Time: 08:12
|
Conditional Display ProblemsI'm creating a template that displays different data depending on the mode I set via a querystring.
http://www.mysite.com/city.php?act=go Here is my php code I use to get the appropriate template data:
And my HTML
And of course the 2 errors I'm receiving when I try this:
Now the file referred to in the second error does exist. Somehow I'm not getting my variable $tpl to display. Can somebody point out the error in my code? I'm using the latest version of TBS also. |
|||
By: Skrol29
Date: 2007-01-15
Time: 18:49
|
Re: Conditional Display ProblemsHi,
The first message is probably because $tpl is a local variable, not a global variable. or perhaps is not set at all because the script do not run into the if() statement as you expect. The second error message is simply because [var.tpl] is not merged so TBS tries to use it literally as a file name. |
|||
By: Trent
Date: 2007-01-15
Time: 21:02
|
Re: Conditional Display ProblemsThanks. I'm not sure what I did, but I finally managed to make it work. :)
|