Author |
Message |
Topic: sub template variable scoping problem |
ndorphin
Replies: 0
Views: 14703
|
Forum: Bugs Posted: Sun Jan 29, 2017 11:59 pm Subject: sub template variable scoping problem |
Hi Uwe,
Up to 3.1.29 the following code display true, 3.1.30 returns false. Seems the scope=parent is not working on sub/sub templates. Hope it's a bug and not a feature.
best
ndorphin
main. ... |
Topic: nocache blocks and effects on variables |
ndorphin
Replies: 2
Views: 10808
|
Forum: Bugs Posted: Sat Jan 30, 2016 1:15 pm Subject: nocache blocks and effects on variables |
Ok, i understand. Thanks for clearing this, Uwe.
Schönen Tag dann noch! |
Topic: nocache blocks and effects on variables |
ndorphin
Replies: 2
Views: 10808
|
Forum: Bugs Posted: Mon Jan 25, 2016 9:34 am Subject: nocache blocks and effects on variables |
Hi,
here in this sample i would expect the output of 'abc' but the variable is always empty. I thought the unused {nocache} block in {if} condition couldn't affect the variable in {else} but it doe ... |
Topic: Bug 3.08: caching of subtemplates used more then 1x |
ndorphin
Replies: 1
Views: 5260
|
Forum: Bugs Posted: Wed Jul 27, 2011 3:12 pm Subject: Bug 3.08: caching of subtemplates used more then 1x |
Hi,
in Smarty 3.08 seems to be a bug (3.06 is ok) in caching if you use a subtemplates more than 1x from different template files. I have created a simple test case to show the bug:
[test. ... |
Topic: a function like {disabled} to disable code parts |
ndorphin
Replies: 3
Views: 13367
|
Forum: Feature Requests Posted: Thu Jul 21, 2011 1:15 am Subject: a function like {disabled} to disable code parts |
{* disabled
how about using comments?
*}
Ah, thanks - didn't know that this is possible and removes the code from templates etc. |
Topic: a function like {disabled} to disable code parts |
ndorphin
Replies: 3
Views: 13367
|
Forum: Feature Requests Posted: Wed Jul 20, 2011 4:56 am Subject: a function like {disabled} to disable code parts |
Yes, i know that i can use an if block to prevent some code'll be executed but i think for maintenance it will be better to have a fixed function. In larger project it's posssible that you forget wher ... |
Topic: Smarty 3: Memory cache resource (APC) |
ndorphin
Replies: 15
Views: 111857
|
Forum: Tips and Tricks Posted: Wed Jul 20, 2011 4:34 am Subject: Smarty 3: Memory cache resource (APC) |
I'll notice that if you use apc with apc.cache_by_default = On and without any filter than your smarty cache files should be already in apc opcode cache. You can test it by viewing the opcode cache (t ... |
Topic: 10 days bug: Call to a member function on a non-object |
ndorphin
Replies: 4
Views: 11478
|
Forum: Smarty 3 Posted: Thu May 19, 2011 9:47 pm Subject: 10 days bug: Call to a member function on a non-object |
The SmartyNocache hash value can't be the cause for this problem.
It's value is new each time a template compiles and is a protection against code injection.
ok, this was only a suspicion of me
H ... |
Topic: 10 days bug: Call to a member function on a non-object |
ndorphin
Replies: 4
Views: 11478
|
Forum: Smarty 3 Posted: Thu May 19, 2011 2:42 am Subject: 10 days bug: Call to a member function on a non-object |
Hi, as i said, i know whats happens when a (object) variable was not assigned. The described problem occurs after 10 days with *all* my cached files, wich running the days before fine. The error messa ... |
Topic: Caching and performance |
ndorphin
Replies: 2
Views: 8763
|
Forum: Smarty 3 Posted: Mon May 16, 2011 11:43 pm Subject: Caching and performance |
Maybe this simple test case doesn't profit from caching? I use smarty caching for really complex pages, without caching the renderring time is some seconds, with smarty caching ~0.2 seconds. Generally ... |
Topic: 10 days bug: Call to a member function on a non-object |
ndorphin
Replies: 4
Views: 11478
|
Forum: Smarty 3 Posted: Mon May 16, 2011 11:18 pm Subject: 10 days bug: Call to a member function on a non-object |
Hi,
i use Smarty 3.0.7 with caching. All runs fine but after exactly a 10 days period (compared to my server logs) i get massive fatal errors "Call to a member function on a non-object". ... |
Topic: Caching question: nocache/dynamic blocks inside foreach loop |
ndorphin
Replies: 2
Views: 6161
|
Forum: General Posted: Fri Dec 25, 2009 6:58 pm Subject: Caching question: nocache/dynamic blocks inside foreach loop |
This can't work as there is no way to get variable data from inside a cached {foreach} as nocached values into the cache file.
Would it be possible to assign with litle overhead also for a cached p ... |
Topic: Caching question: nocache/dynamic blocks inside foreach loop |
ndorphin
Replies: 2
Views: 6161
|
Forum: General Posted: Fri Dec 25, 2009 1:29 am Subject: Caching question: nocache/dynamic blocks inside foreach loop |
Hello,
i've the following question about smarty caching (i use now Smarty3 B5 but I had the same problem with Smarty2 -> instead of {nocache} tags from S3 i 've used dynamic blocks in S2):
I ... |
Topic: SmartyB5 clear_cache not working (on Windows) |
ndorphin
Replies: 2
Views: 7226
|
Forum: Smarty 3 Posted: Fri Dec 25, 2009 12:38 am Subject: SmartyB5 clear_cache not working (on Windows) |
Ok, thanks. Hope that in the new version there will be no iteration through the filesystem (could be slow on virtual servers) for comparing all files with the cache filename to to delete. Maybe the fi ... |
Topic: SmartyB5 clear_cache not working (on Windows) |
ndorphin
Replies: 2
Views: 7226
|
Forum: Smarty 3 Posted: Thu Dec 24, 2009 8:30 pm Subject: SmartyB5 clear_cache not working (on Windows) |
Hello,
I've found a bug(?) using smarty clear_cache function on my windows installation (could not test linux behavoir at the moment):
Version is Smarty Beta 5
* SVN: $Id: Smart ... |
|