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 3 matches
Smarty Forum Index
Author Message
  Topic: using foreach without repeating fields
lsantos2000

Replies: 3
Views: 14827

PostForum: Smarty Development   Posted: Fri Jun 11, 2004 7:48 pm   Subject: posting reply from messju (thanks to him, got email)
> Is there a way to do a foreach DISTINCT element?

not really.

> or how would you do this?

i wouldn't use a two-dimensional array (each row has 3 columns) as you do, but
i would setup ...
  Topic: using foreach without repeating fields
lsantos2000

Replies: 3
Views: 14827

PostForum: Smarty Development   Posted: Fri Jun 11, 2004 7:40 pm   Subject: More info about my request
>
> Hi,
>
> I have this array $itemList with 3 elements
>
> category, role, name
>
> ordered by category, role, name
>
> I want to display by the folllowing ...
  Topic: using foreach without repeating fields
lsantos2000

Replies: 3
Views: 14827

PostForum: Smarty Development   Posted: Thu Jun 10, 2004 10:03 pm   Subject: using foreach without repeating fields
I have a variable $itemList wihic is an array of 3 elements each row

i.e.

category, role , name

cat1, role1, name1
cat1, role1, name2
cat1, role2, name3
cat2, role1, name1
cat3, role1, na ...
 
Page 1 of 1
All times are GMT
Jump to:  


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