Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

call a field manual from the array

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
emkedouwe
Smarty Rookie


Joined: 11 Sep 2003
Posts: 5

PostPosted: Thu Sep 11, 2003 9:59 am    Post subject: call a field manual from the array Reply with quote

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
View user's profile Send private message
muppie
Smarty Rookie


Joined: 27 Apr 2003
Posts: 20

PostPosted: Sat Sep 13, 2003 2:57 pm    Post subject: Reply with quote

I don't know about the 0 at the front but you can try

$id.PROJECT[0].thg_id
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP