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 5 matches
Smarty Forum Index
Author Message
  Topic: How find out the value of the next index in foreach/section
OmJFJ

Replies: 5
Views: 20906

PostForum: General   Posted: Mon Aug 01, 2016 12:58 am   Subject: How find out the value of the next index in foreach/section
Let me guess, you are using Smarty2?...

yes.

I found the problem but i cant solve it. Its not working because I am writing inside a <script>, I have tested the code outside the <script& ...
  Topic: 
OmJFJ

Replies: 0
Views: 17377

PostForum: Language: German   Posted: Sun Jul 31, 2016 5:24 pm   Subject:
hier mein Array:


[== smarty ==]
$array[0].item = '1'
$array[1].item = '2'
$array[2].item = '3'
...


Nun möchte ich den Wert vom nächsten Index mittels e ...
  Topic: How find out the value of the next index in foreach/section
OmJFJ

Replies: 5
Views: 20906

PostForum: General   Posted: Sun Jul 31, 2016 1:37 pm   Subject: How find out the value of the next index in foreach/section
thank you sir for your reply.

I understand your argument, but before I write a complex program I get a "syntax" error. I do not have great experience in "smarty", but looks matt ...
  Topic: How find out the value of the next index in foreach/section
OmJFJ

Replies: 5
Views: 20906

PostForum: General   Posted: Sat Jul 30, 2016 4:53 pm   Subject: How find out the value of the next index in foreach/section
that is simply Unbelievable!. I would just have the next "index" of an array. most programming languages its solved by [i + 1], why it is so complicated here?
  Topic: How find out the value of the next index in foreach/section
OmJFJ

Replies: 5
Views: 20906

PostForum: General   Posted: Fri Jul 29, 2016 4:01 pm   Subject: How find out the value of the next index in foreach/section
Need to know the value of the next Index in the current loop.

my $array is:
array[0].amount = 10;
array[1].amount = 20;
array[2].amount = 30;



{section name=id ...
 
Page 1 of 1
All times are GMT
Jump to:  


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