A couple of problems with Smarty...
| From: | Thomas Lundström | Date: | Thu, 05 Dec 2002 11:52:48 +0000 |
| Subject: | A couple of problems with Smarty... | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6645@lists.php.net to get a copy of this message | ||
Hi.
I installed Smarty on my server running Mac OS X and Apache.
There has generally been no problems at all, but two things have popped up.
Number one:
When I activate caching, variables passed through the system seem to stick.
I've set up an example at http://blau.homeunix.net/tmp/gnuck. As you can see the only thing it does is take a variable from the form on the first page (users name) and print it on the second page.
This works fine the first time when there is no cache present. But after the first user has filled in his name and gets it printed on the second page, all following users will get the first users name.
If I turn caching off, the problem is gone.
I have checked file rights and ownerships, and I can't find anything there that could cause the problem...
Any hints?
Number two:
I can't seem to get a loop going in a smarty template. No matter what I send to the template to use with the {selection} tag, it fails. I've tried to put regular text within the loop to see if it was the results that failed, but it will not print that text either, so it seems that it just doens't start the loop at all.
Thanks in advance
Thomas Lundström