complex array and smarty
| From: | adwinwijaya | Date: | Mon, 09 Aug 2004 06:22:45 +0000 |
| Subject: | complex array and smarty | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-193172@lists.php.net to get a copy of this message | ||
Hello all,
Assume I have array that looks like :
Array(
'type'->'Fiction',
'notes'->'Fiction books from a-z',
'list'-> Array(
'list'-> [0]->array(
'title'->'xzy',
'id'->'1')
[1]->array(
'title'->'abcd',
'id'->'2')
)
)
Now, I want to display it using smarty os it looks like
---------------------------------------------------
Books Result:
----------------------------------------------------
1. Type: Fiction
Notes: bla bla bla bla
----------------------
ID | Title
----------------------
1 | xzy
2 | abcd
----------------------
2. Type: Non-Fiction
Notes: bla bla bla bla
----------------------
ID | Title
----------------------
3 | ABCDEFEGH
4 | LALALALLA
----------------------
Etc ...
can I do like that with smarty ? and how to do that ?
I knew to use array, but for this array, I dont know how to do that
thx
regards
adwin