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 51 matches
Smarty Forum Index
Author Message
  Topic: {assign} scope set via option rather than in every {assign}
cyber

Replies: 10
Views: 13568

PostForum: General   Posted: Wed Nov 25, 2015 8:37 am   Subject: {assign} scope set via option rather than in every {assign}
OK thanks !
I ended up doing the work already !
  Topic: {assign} scope set via option rather than in every {assign}
cyber

Replies: 10
Views: 13568

PostForum: General   Posted: Wed Nov 25, 2015 5:32 am   Subject: {assign} scope set via option rather than in every {assign}
I went from Smarty 2.6.22 to Smarty 3.1.27

For instance:

if(!$smarty->isCached('index.tpl'))
{
$content = $smarty->fetch('about.tpl');
$smarty->assign ...
  Topic: {assign} scope set via option rather than in every {assign}
cyber

Replies: 10
Views: 13568

PostForum: General   Posted: Tue Nov 24, 2015 5:46 am   Subject: {assign} scope set via option rather than in every {assign}
PS. after creation of the instance I assign general values, which normally were overwritten via {assign}, but not anymore:

$smarty->assign('title', "standard title");
$smarty->ass ...
  Topic: {assign} scope set via option rather than in every {assign}
cyber

Replies: 10
Views: 13568

PostForum: General   Posted: Tue Nov 24, 2015 5:13 am   Subject: {assign} scope set via option rather than in every {assign}
I have a small disaster on my hands. Mea Culpa. Quite a few months ago I changed to the then most recent Smarty version from a rather old version and everything appeared to work fine. Although, I d ...
  Topic: loadFilter('output','trimwhitespace') and isCached()
cyber

Replies: 5
Views: 22749

PostForum: Smarty 3   Posted: Tue Aug 04, 2015 5:56 am   Subject: loadFilter('output','trimwhitespace') and isCached()
Perfect !

This is all I need to know.

Cheers
  Topic: loadFilter('output','trimwhitespace') and isCached()
cyber

Replies: 5
Views: 22749

PostForum: Smarty 3   Posted: Mon Aug 03, 2015 6:16 pm   Subject: loadFilter('output','trimwhitespace') and isCached()
Thanks !!

I don't use {nocache} sections (yet, so good to know !)

But in any event, if I understand correctly, the output filter will run only once ?
- Either before the cache is written to H ...
  Topic: loadFilter('output','trimwhitespace') and isCached()
cyber

Replies: 5
Views: 22749

PostForum: Smarty 3   Posted: Thu Jul 30, 2015 2:32 pm   Subject: loadFilter('output','trimwhitespace') and isCached()
Looking at the cached files, the filter appears to have been applied.
Does this mean it won't be executed again on cached content ?
  Topic: loadFilter('output','trimwhitespace') and isCached()
cyber

Replies: 5
Views: 22749

PostForum: Smarty 3   Posted: Wed Jul 29, 2015 8:56 am   Subject: loadFilter('output','trimwhitespace') and isCached()
I want to try loadFilter('output','trimwhitespace') ( http://www.smarty.net/docs/en/api.load.filter.tpl ) but since I use caching as well I wonder how the two work together ?

I would like to call ...
  Topic: compressed caching and serving compressed content
cyber

Replies: 17
Views: 19286

PostForum: General   Posted: Sun Jul 26, 2015 7:06 am   Subject: compressed caching and serving compressed content
I see the following possibility:

Thanks for the confirmation

If your template does contain nocache code the output filter does not run when cache file is created, but when the page is displayed. ...
  Topic: compressed caching and serving compressed content
cyber

Replies: 17
Views: 19286

PostForum: General   Posted: Mon Jul 20, 2015 6:58 am   Subject: compressed caching and serving compressed content
I didn't expect another reply from you AnrDaemon.
Your link, as well as your input on this thread, is useless.
  Topic: compressed caching and serving compressed content
cyber

Replies: 17
Views: 19286

PostForum: General   Posted: Sun Jul 19, 2015 7:49 am   Subject: compressed caching and serving compressed content
Sigh ...
It's a good question, and the ones that aren't laughing, and actually understand the deeper mechanics, will agree. I may not work, that is something else, but it is certainly not a bad idea ...
  Topic: compressed caching and serving compressed content
cyber

Replies: 17
Views: 19286

PostForum: General   Posted: Sat Jul 18, 2015 6:53 pm   Subject: compressed caching and serving compressed content
I did not intend to respond anymore as I'm not going to get a good answer from you, but all your post does is tell me that you still don't understand ? So I shall try again ...


Second, you didn' ...
  Topic: compressed caching and serving compressed content
cyber

Replies: 17
Views: 19286

PostForum: General   Posted: Sat Jul 18, 2015 7:09 am   Subject: compressed caching and serving compressed content
There are no wrong questions AnrDaemon.

It is a fair question to which you never replied to the point. I still don't know the answer, I just deduced, from your aggressive-style replies, that tha ...
  Topic: Speed 2.x vs 3.x
cyber

Replies: 6
Views: 6593

PostForum: General   Posted: Fri Jul 17, 2015 6:08 am   Subject: Speed 2.x vs 3.x
Same as previous post, you avoid giving a straight answer and go on to assume things you really don't know. I may or may not be serving 3-4K users per minute, I may be on super fast or super slow inf ...
  Topic: compressed caching and serving compressed content
cyber

Replies: 17
Views: 19286

PostForum: General   Posted: Fri Jul 17, 2015 5:58 am   Subject: compressed caching and serving compressed content
It's very difficult to get a straight answer out of you isn't it ? I feel like I'm wasting my time, so I shall conclude it here.

I shall interpret this as 'No there is no such solution in Smarty t ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT
Jump to:  


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