Tinkering with the old ShopScript engine. There is a cycle on the page.
{section name=i loop=$aux_pages} //код {/section} Is it possible to somehow get the value of the variable i, to work with it in php code?
It turned out so far only visually to display i in the input (in the body of the cycle, respectively)
<input type="text" value="{$smarty.section.i.index}" name="cic"> or can somehow extract the value of the input without sending a form with this input?
UPD: smarty version 2.6.10
{php}i.e. version 2? - teranget_temaplate_var(), after copying the variable somewhere a la {$ x = $ smarty.section.i.index}, but not the fact that it is extracted, because Like a bit for other purposes function - teran{assign var="x" value=....}or{assign "x" .... }- teran