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

Search found 1 match
Smarty Forum Index
Author Message
  Topic: foreach item value overwrites assigened value
Sairahcaz

Replies: 1
Views: 1607

PostForum: General   Posted: Wed Jul 26, 2017 9:33 am   Subject: foreach item value overwrites assigened value
Hi,

I assign a value like this:
$smarty->assign('foo', 'bar');

But also have a foreach in a included template like this:
{foreach from=$fooData item=foo}

Now my assign ...
 
Page 1 of 1
All times are GMT
Jump to:  


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