Re: [SMARTY] A couple of problems with Smarty...
| From: | sweatjejm at mchsi dot com | Date: | Thu, 05 Dec 2002 14:21:22 +0000 |
| Subject: | Re: [SMARTY] A couple of problems with Smarty... | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6649@lists.php.net to get a copy of this message | ||
Your first problem is the expected behavior for caching. If there are just
small portions of the cached template you want to have dynamic, check out
http://smarty.php.net/manual/en/language.function.insert.html
HTH
Jason
> 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
>