Re: [SMARTY] A couple of problems with Smarty...
| From: | Tim Burden | Date: | Thu, 05 Dec 2002 14:02:22 +0000 |
| Subject: | Re: [SMARTY] A couple of problems with Smarty... | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6648@lists.php.net to get a copy of this message | ||
For your first problem, that is correct behaviour for the cache. Cache
writes the dynamically generated contents to file, so second time through,
the cache will display the results it generated first time through. This is
not the right place to use caching.
For your second problem, by {selection} tag you may mean {section} tag?
----- Original Message -----
From: "Thomas Lundström" <thomas@ankeborg.net>
To: <smarty-general@lists.php.net>
Sent: Thursday, December 05, 2002 6:52 AM
Subject: [SMARTY] A couple of problems with Smarty...
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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php