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 6 matches
Smarty Forum Index
Author Message
  Topic: capture nocache block unexpected result
n0xor

Replies: 3
Views: 8526

PostForum: Bugs   Posted: Fri Dec 05, 2014 9:31 am   Subject: capture nocache block unexpected result
It doesn't make any sense to capture no-cached content if the rest of the page is cached.
In the capture block there is of cause more code. Both together (nocached and cached code) should then be pas ...
  Topic: capture nocache block unexpected result
n0xor

Replies: 3
Views: 8526

PostForum: Bugs   Posted: Thu Dec 04, 2014 9:17 pm   Subject: capture nocache block unexpected result
I'm not quiet sure if this is a bug or I'm doing something wrong here but this is my code:


{capture assign="c_content"}
{nocache}{$x = 17}{$x}&# ...
  Topic: Price division and a IF
n0xor

Replies: 3
Views: 5206

PostForum: General   Posted: Thu Dec 04, 2014 5:46 pm   Subject: Price division and a IF

{convertPrice price=$productPrice/(($productPrice<100)?6:12)}
Not tested but this provides much more readability
  Topic: Why would get_template _vars not work?
n0xor

Replies: 10
Views: 8671

PostForum: General   Posted: Thu Dec 04, 2014 5:36 pm   Subject: Re: Why would get_template _vars not work?
"Call to a member function get_template_vars() on a non-object"
"on a non-object"
"on a non-object"

Let me point out that u are calling the function not on the smart ...
  Topic: Access a Smarty variable from plugin
n0xor

Replies: 3
Views: 20597

PostForum: Plugins   Posted: Thu Dec 04, 2014 5:30 pm   Subject: Access a Smarty variable from plugin
Try that

$template->smarty->getTemplateVars();
http://www.smarty.net/docs/en/api.get.template.vars.tpl


Or did I missunderstood u? Provide some example[/code][/quote]
  Topic: Really cache variables/arrays/objects
n0xor

Replies: 1
Views: 7743

PostForum: Smarty Development   Posted: Thu Dec 04, 2014 2:21 pm   Subject: Really cache variables/arrays/objects
I've had the problem that it seemed just impossible for me to cache real data in the template. I'm from Germany so it's a bit hard to explain what I mean, but the case is that I was not able to cache ...
 
Page 1 of 1
All times are GMT
Jump to:  


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