|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
Author |
Message |
Topic: OR and calculations? |
me2
Replies: 2
Views: 8015
|
Forum: Smarty 3 Posted: Fri Aug 28, 2009 2:15 pm Subject: OR and calculations? |
I used to do something like this to generate some cropped pagination:
{section name=paginas loop=$iMaxPages}
{if $smarty.section.paginas.iteration < 14
|| $smarty.section.pagi ... |
Topic: Whitespace in {if} fails |
me2
Replies: 2
Views: 8939
|
Forum: Smarty 3 Posted: Thu Aug 13, 2009 9:44 am Subject: Whitespace in {if} fails |
There more. In Smarty 2 this worked:
{if ! $smarty.foreach.languages.last} - {/if}
Smarty 3 throws this:
Code: 0
Error: Syntax Error in template "/var/.../index. ... |
Topic: Whitespace in {if} fails |
me2
Replies: 2
Views: 8939
|
Forum: Smarty 3 Posted: Thu Aug 13, 2009 8:36 am Subject: Whitespace in {if} fails |
I'm porting Smarty 2 templates to be compatible with Smarty 3 (latest rev).
I just got this error:
Code: 0
Error: Syntax Error in template "/var/...l/index.html" on line 214 &q ... |
|
Page 1 of 1 |
All times are GMT |
Powered by phpBB © 2001, 2005 phpBB Group
|