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 14 matches
Smarty Forum Index
Author Message
  Topic: nocache not subject to structured block checking
martinello

Replies: 1
Views: 6071

PostForum: Bugs   Posted: Sun Jan 26, 2014 2:32 pm   Subject: nocache not subject to structured block checking
In the thread
http://www.smarty.net/forums/viewtopic.php?t=23280
was said that nocache is not subject to the structured block checking, because in some cases this behaviour can be used to expand an ...
  Topic: flushing page earlier
martinello

Replies: 12
Views: 16660

PostForum: General   Posted: Sat Oct 06, 2012 6:36 am   Subject: flushing page earlier
Let's refer to your first solution using two templates.
If I want to use one template and not two, I have to split the one template in two parts in some way.
Stop compiling is a way to split the te ...
  Topic: flushing page earlier
martinello

Replies: 12
Views: 16660

PostForum: General   Posted: Fri Oct 05, 2012 5:54 pm   Subject: flushing page earlier
A question about what you are telling:
By: "Your breakpoint will occour on some deeper nesting level
of PHP method and may be subtemplates".
What you mean? In other words, do you include ...
  Topic: flushing page earlier
martinello

Replies: 12
Views: 16660

PostForum: General   Posted: Fri Oct 05, 2012 5:28 pm   Subject: flushing page earlier
Sorry I didn't see your 2nd msg. Actually the break_point is not a plugin. I'm going to explain why. During template parsing, when a {plugin} is found, it is translated in a function call and compilat ...
  Topic: flushing page earlier
martinello

Replies: 12
Views: 16660

PostForum: General   Posted: Fri Oct 05, 2012 5:08 pm   Subject: flushing page earlier
Actually, I think that your first solution is better than the 2nd, from a design pattern point of view. In the MVC model, a view never asks for results to the controller. Your 2nd solution does it. Ex ...
  Topic: flushing page earlier
martinello

Replies: 12
Views: 16660

PostForum: General   Posted: Fri Oct 05, 2012 4:27 pm   Subject: flushing page earlierr
Thanks for your code. uhm... I've some doubts about this method, even for a limited use case. Hhere are the reasons.
Excuse in advance for the length of the message.


Let's set a simplistic code ...
  Topic: flushing page earlier
martinello

Replies: 12
Views: 16660

PostForum: General   Posted: Fri Oct 05, 2012 2:01 pm   Subject: flushing page earlier
Please give me the SOA (state of art) for this flushing problem in smarty, I'm pleased to help you in finding a solution. I probably know the smarty source code less than you, so your point on the sit ...
  Topic: flushing page earlier
martinello

Replies: 12
Views: 16660

PostForum: General   Posted: Fri Oct 05, 2012 7:09 am   Subject: flushing page earlier
Hello,
About this thread
http://www.smarty.net/forums/viewtopic.php?t=20183
Are there news about flushing early? Can it be done now in Smarty?
I use cache and I don't use output pre/post filters. ...
  Topic: Smarty 3: variable variables
martinello

Replies: 10
Views: 83665

PostForum: Tips and Tricks   Posted: Fri Oct 05, 2012 6:41 am   Subject: Re: Smarty 3: variable variables
Hello,
Is it valid for config variables also?
I tried {#foo_{$var}#}, it seems not working.In Smarty 2 if you had to access a dynamic variable name, something like this would be required:

{a ...
  Topic: smarty header codes
martinello

Replies: 1
Views: 3817

PostForum: General   Posted: Wed Oct 03, 2012 7:50 am   Subject: smarty header codes
Hello,
Header code in the smarty compiled template:

<?php /*%%SmartyHeaderCode:17717506be93956f5c7-17003240%%*/

how smarty uses it?
Is it just an informational header which can be suppress ...
  Topic: Cache and config variables don't mix
martinello

Replies: 6
Views: 13209

PostForum: Bugs   Posted: Wed Oct 03, 2012 7:10 am   Subject: Cache and config variables don't mix
Great!
forum Members, please forgive me if I classified it as a bug at the beginning. A syntax like this is counterintuitive for me and I didn't think to try something like this, because in a program ...
  Topic: Cache and config variables don't mix
martinello

Replies: 6
Views: 13209

PostForum: Bugs   Posted: Tue Oct 02, 2012 2:49 pm   Subject: Cache and config variables don't mix
Hello,
I see your idea.
For the config values used in nocache calculations, it's actually, as you say, a design choice that, in my opinion, breaks the separation between presentation and logic, beca ...
  Topic: Cache and config variables don't mix
martinello

Replies: 6
Views: 13209

PostForum: Bugs   Posted: Tue Oct 02, 2012 9:10 am   Subject: Cache and config variables don't mix
Hello,
Thanks for the reply.
Let's say that I delete the nocache tags and assign the logged variable as non cacheable, as I did. The problem persists.
This is because the logged variable is in a {i ...
  Topic: Cache and config variables don't mix
martinello

Replies: 6
Views: 13209

PostForum: Bugs   Posted: Mon Oct 01, 2012 8:16 pm   Subject: Cache and config variables don't mix
Hello,
Let's start from this thread.
http://www.smarty.net/forums/viewtopic.php?t=21547

That said, I'm using the latest smarty version and I believe that I found a more general version of the bug ...
 
Page 1 of 1
All times are GMT
Jump to:  


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