|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
emkedouwe Smarty Rookie
Joined: 11 Sep 2003 Posts: 5
|
Posted: Thu Sep 11, 2003 9:59 am Post subject: call a field manual from the array |
|
|
Hello,
I've got the following code:
Code: |
{section name=technisch loop=$technisch_list.PROJECT}
{assign var="loop_id" value=$smarty.section.technisch.index}
{assign var="id" value=$technisch_list}
{$id.PROJECT.$loop_id.lang.view.title}
{$id.PROJECT.$loop_id.thg_id}
{$id1.PROJECT.$id2.lang.view.title}
{/section}
|
And it works fine. But i want to call a value manual from the array like this: 0.project.0.thg_id
But when i try this i'll get a error. How can i manual select a value from an array ? |
|
Back to top |
|
muppie Smarty Rookie
Joined: 27 Apr 2003 Posts: 20
|
Posted: Sat Sep 13, 2003 2:57 pm Post subject: |
|
|
I don't know about the 0 at the front but you can try
$id.PROJECT[0].thg_id |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|