Author |
Message |
Topic: I can't find the function setCaching() anywhere in my Smarty |
U.Tews
Replies: 9
Views: 9006
|
Forum: General Posted: Wed Nov 06, 2019 10:11 pm Subject: I can't find the function setCaching() anywhere in my Smarty |
All Smarty properties can be accessed by corresponding getter/setter functions. However depending of the release not all of these functions had been implemented in real code but the generic __call in ... |
Topic: Hiding comments ? |
U.Tews
Replies: 2
Views: 13681
|
Forum: General Posted: Tue Oct 23, 2018 12:20 pm Subject: Hiding comments ? |
See https://www.smarty.net/docs/en/language.basic.syntax.tpl#language.syntax.comments |
Topic: Unexpected input at line x smarty_internal_templatelexer.php |
U.Tews
Replies: 10
Views: 41243
|
Forum: Bugs Posted: Sun Oct 14, 2018 1:50 am Subject: Unexpected input at line x smarty_internal_templatelexer.php |
This was a bug on some very large plain text sections, without any Smarty tags.
This has been fixed in the github master branch and will be included in 3.1.34 |
Topic: date_format return the current date when input is null |
U.Tews
Replies: 2
Views: 14873
|
Forum: Bugs Posted: Sun Oct 14, 2018 1:39 am Subject: date_format return the current date when input is null |
This is not a bug. Read the
It was a bug. The fix is in the master branch and will be included in 3.1.34 |
Topic: return value for {function} or define global variables |
U.Tews
Replies: 4
Views: 25819
|
Forum: Smarty 3 Posted: Fri Aug 31, 2018 9:39 am Subject: return value for {function} or define global variables |
Template functions can return values by assigning variables in parent scope
{function somefunction}
......
{assign $retvalue = $foo scope=parent}
{assign $otherretva ... |
Topic: Autoloader not finding class Smarty_Internal_Compile_Cycle |
U.Tews
Replies: 6
Views: 9001
|
Forum: General Posted: Mon Apr 09, 2018 12:45 pm Subject: Autoloader not finding class Smarty_Internal_Compile_Cycle |
We use code like class_exists($classname, [true])
to try to find compiler code or after that try plugins.
The class Smarty_Internal_Compiler_Cykle does not exists. next step would b ... |
Topic: Variables in tpl |
U.Tews
Replies: 2
Views: 4012
|
Forum: General Posted: Mon Apr 09, 2018 12:03 pm Subject: Variables in tpl |
q={"Cena-zł-{$value1}-{value2}"}
Double qoutes but in side Samrty { } tags will do the job. |
Topic: include and dynamic attribute value |
U.Tews
Replies: 6
Views: 6914
|
Forum: General Posted: Mon Apr 09, 2018 11:52 am Subject: include and dynamic attribute value |
{nocache}{foreach...}{include} {/foreach}Is wrong as {include} is now inside the nocache section and all includes are executed in nocache mode.
It's currentl ... |
Topic: html page rendering |
U.Tews
Replies: 1
Views: 4030
|
Forum: General Posted: Mon Apr 09, 2018 5:56 am Subject: html page rendering |
Note that the double quotes have no effect outside of Smarty tags.
They must be surrounded by {}
id="{"{$foo}_{$bar}_{$bue}_level{$foo}" ... |
Topic: Inaccurate Lexer/Compiler - TRAILING NEWLINE Issue |
U.Tews
Replies: 10
Views: 11629
|
Forum: General Posted: Mon Nov 20, 2017 4:09 am Subject: Inaccurate Lexer/Compiler - TRAILING NEWLINE Issue |
Update
Twig produce exacty the same results as my examples.
So we do now same thing. |
Topic: Inaccurate Lexer/Compiler - TRAILING NEWLINE Issue |
U.Tews
Replies: 10
Views: 11629
|
Forum: General Posted: Mon Nov 20, 2017 3:03 am Subject: Inaccurate Lexer/Compiler - TRAILING NEWLINE Issue |
Indeed the behavior of the compiler did become unpredictable regarding the newline spacing between tags and text content.
The problem was caused by some efforts to reduce context switching between ... |
Topic: Composer upgraded to 3.1.30.. tons of problems |
U.Tews
Replies: 9
Views: 32946
|
Forum: Bugs Posted: Wed Nov 15, 2017 2:09 am Subject: Composer upgraded to 3.1.30.. tons of problems |
How did your {include ....} tag look like.
And please provide the content of the file_dependency array of the compiled template file.
I was not able to reproduce the problem. |
Topic: {strip} bug? |
U.Tews
Replies: 10
Views: 28330
|
Forum: Bugs Posted: Sun Nov 12, 2017 12:16 am Subject: {strip} bug? |
The behaviour of {strip} has been changed since version 3.1.28 to keep multiline html tags intact. |
Topic: Composer upgraded to 3.1.30.. tons of problems |
U.Tews
Replies: 9
Views: 32946
|
Forum: Bugs Posted: Sun Nov 12, 2017 12:02 am Subject: Composer upgraded to 3.1.30.. tons of problems |
Which Smarty version did you use?
Have you tried to delete the compiled and cached template files once manually after the upgrade?
With composer you can also install "3.1.31" or " ... |
Topic: Smarty 3.1.31 errors with section and associative arrays |
U.Tews
Replies: 2
Views: 4721
|
Forum: General Posted: Mon Nov 06, 2017 4:19 am Subject: Smarty 3.1.31 errors with section and associative arrays |
Hello
This was a bug when both {$smarty.section.name.loop} and{$smarty.section.name.total} had been used.
The fix is now on github in the master branch and will later be included in version 3.1. ... |
|