Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Pass to static method array param foreach item

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
djmassive
Smarty n00b


Joined: 17 Jan 2010
Posts: 3

PostPosted: Mon Jun 27, 2016 9:35 pm    Post subject: Pass to static method array param foreach item Reply with quote

I've got static method like this:

Code:
{Method::post([ 'name' => 'value' ])}


How can i pass other smarty var for example:

Code:
{foreach item=item from=$array}
{Method::post([ 'name' => 'value' . $item.value ])}
{/foreach}


Thanks for any idea.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    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