Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 5 matches
Smarty Forum Index
Author Message
  Topic: Nested function calls and caching
invliD

Replies: 1
Views: 4208

PostForum: General   Posted: Sat Nov 24, 2012 10:58 am   Subject: Nested function calls and caching
Hey guys,

I am using a nested function call to generate a link (function 'link') with a localized title (function 'lang').
The function 'link' is defined as being no-cached. All attributes are to ...
  Topic: Convert number of seconds to human readable (NOT date!)
invliD

Replies: 7
Views: 22779

PostForum: Plugins   Posted: Mon May 02, 2011 1:39 pm   Subject: Re: Convert number of seconds to human readable (NOT date!)
Hey.

This is a small fix for your plugin.
($hours > 1 ? "s" : "")
You should rather use "$hours != 1" instead of > 1, because you also say 0 hours. ...
  Topic: "smarty" template variable not set when rebuilding
invliD

Replies: 4
Views: 9172

PostForum: Bugs   Posted: Thu Mar 03, 2011 9:04 pm   Subject: "smarty" template variable not set when rebuilding
Ahh. Ok, thanks for the clarification.
  Topic: "smarty" template variable not set when rebuilding
invliD

Replies: 4
Views: 9172

PostForum: Bugs   Posted: Thu Mar 03, 2011 5:36 pm   Subject: "smarty" template variable not set when rebuilding
Thanks.

That's true. But that was not what I meant. The bug I fixed was not related to sections at all. For whatever reason all template vars were deleted when the cache expired. Why? Doesn't the t ...
  Topic: "smarty" template variable not set when rebuilding
invliD

Replies: 4
Views: 9172

PostForum: Bugs   Posted: Thu Mar 03, 2011 1:24 pm   Subject: "smarty" template variable not set when rebuilding
Assuming you have the following template 'test.tpl':
{include file='header.tpl'}
template code
{include file='footer.tpl'}
When you enable caching for this file (Smarty::CACHIN ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP