Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 5067 matches
Smarty Forum Index
Author Message
  Topic: Hiding comments ?
U.Tews

Replies: 2
Views: 1016

PostForum: 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: 3903

PostForum: 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: 1103

PostForum: 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: 7947

PostForum: 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: 1906

PostForum: 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: 902

PostForum: 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: 1459

PostForum: 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: 736

PostForum: 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: 3844

PostForum: 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: 3844

PostForum: 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: 6003

PostForum: 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: 3152

PostForum: 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: 6003

PostForum: 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: 1606

PostForum: 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. ...
  Topic: Release 3.1.31 Smarty_Internal_TemplateCompilerBase bug
U.Tews

Replies: 1
Views: 2412

PostForum: Bugs   Posted: Fri Apr 14, 2017 11:53 am   Subject: Release 3.1.31 Smarty_Internal_TemplateCompilerBase bug
the fix is now on github in the master branch
 
Page 1 of 338 Goto page 1, 2, 3 ... 336, 337, 338  Next
All times are GMT
Jump to:  


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