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 16 matches
Smarty Forum Index
Author Message
  Topic: nested tags inside name attribute
liviu.gelea

Replies: 2
Views: 11710

PostForum: Bugs   Posted: Mon Dec 21, 2015 9:22 am   Subject: Thanks
Thanks for your answer. I suspected you might not want to fix this in smarty 3 due to it's non-standard-ness. I fixed this in my project but since I inherited a very large legacy codebase (smarty 2), ...
  Topic: nested tags inside name attribute
liviu.gelea

Replies: 2
Views: 11710

PostForum: Bugs   Posted: Fri Dec 18, 2015 1:05 pm   Subject: nested tags inside name attribute
It appears checking for illegal characters inside the name attribute does not allow nested smarty tags or backticks and/or variables.
We use
... Syntax error in template...
"[%foreach fr ...
  Topic: Elegant bug
liviu.gelea

Replies: 5
Views: 22076

PostForum: Bugs   Posted: Fri Dec 18, 2015 1:00 pm   Subject: Thanks
Thanks a lot
  Topic: Elegant bug
liviu.gelea

Replies: 5
Views: 22076

PostForum: Bugs   Posted: Thu Dec 17, 2015 6:36 pm   Subject: Elegant bug
const SMARTY_VERSION = '3.1.29-dev/3';
  Topic: Elegant bug
liviu.gelea

Replies: 5
Views: 22076

PostForum: Bugs   Posted: Thu Dec 17, 2015 5:34 pm   Subject: Elegant bug
This fails:

a{if 0}1{else}0{/if}a

expected: "a0a"
output: "aa"


This works:

a{if 0}1{else} 0{/if}a

expe ...
  Topic: cannot use mixed-case string as foreach "name" att
liviu.gelea

Replies: 5
Views: 10800

PostForum: Bugs   Posted: Mon Dec 14, 2015 9:41 am   Subject: Works perfectly
Thanks a lot
  Topic: debugging_ctrl and debugging
liviu.gelea

Replies: 4
Views: 9340

PostForum: Bugs   Posted: Mon Dec 14, 2015 9:40 am   Subject: Works perfectly
Thanks a lot
  Topic: cannot use mixed-case string as foreach "name" att
liviu.gelea

Replies: 5
Views: 10800

PostForum: Bugs   Posted: Thu Dec 10, 2015 12:40 pm   Subject: another case
Hi. the same thing happens inside the "section" tag for the name attribute. This seems to be a problem with the name attribute


[%section loop=$USER.Groups name=uGroup%]
&l ...
  Topic: debugging_ctrl and debugging
liviu.gelea

Replies: 4
Views: 9340

PostForum: Bugs   Posted: Thu Dec 10, 2015 9:36 am   Subject: Thanks
Thanks a lot
  Topic: cannot use mixed-case string as foreach "name" att
liviu.gelea

Replies: 5
Views: 10800

PostForum: Bugs   Posted: Thu Dec 10, 2015 9:11 am   Subject: cannot use mixed-case string as foreach "name" att
I can try the newer format and in fact I use it for new code. But there are 120 instances of mixed-case .iteration uses in my legacy code.
I think I have a script i used for @first and @last replace ...
  Topic: cannot use mixed-case string as foreach "name" att
liviu.gelea

Replies: 5
Views: 10800

PostForum: Bugs   Posted: Wed Dec 09, 2015 2:32 pm   Subject: cannot use mixed-case string as foreach "name" att
Hello. The following code outputs "a b 1a 2b" instead of expected "1a 2b 1a 2b"


[%assign var=myarray value=array("a", "b") %]

[%fore ...
  Topic: Upgrade from 2 to 3 error
liviu.gelea

Replies: 4
Views: 10896

PostForum: Bugs   Posted: Thu Dec 03, 2015 11:22 am   Subject: Upgrade from 2 to 3 error
Hi. Smarty does not handle business logic. However it does handle everything displayed on page, including the html attributes. If you upgraded smarty it is possible that an input receives the wrong &q ...
  Topic: debugging_ctrl and debugging
liviu.gelea

Replies: 4
Views: 9340

PostForum: Bugs   Posted: Wed Dec 02, 2015 1:11 pm   Subject: debugging_ctrl and debugging
Hi.
I was faced with the following error:


Call to a member function debugUrl() on a non-object in .....\smarty_internal_template.php on line 145


The documentation states that debug ...
  Topic: Upgrade from 2 to 3 error
liviu.gelea

Replies: 4
Views: 10896

PostForum: Bugs   Posted: Wed Dec 02, 2015 12:57 pm   Subject: Upgrade from 2 to 3 error
Hi. I'm working on upgrading smarty2 code to smarty 3 for months.

The error you're facing is due to functions being renamed and have had parameters changed. For example
register_function( etc. ...
  Topic: Problem with custom delimiters
liviu.gelea

Replies: 2
Views: 7033

PostForum: Bugs   Posted: Thu Nov 26, 2015 3:36 pm   Subject: Thanks
Thanks a lot. Your fix works like a charm.
You're a lightsaber... I mean life saver. And a lightsaber.
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


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