Posted by iktorn on 04/24/07 16:10
Man-wai Chang napisał(a):
>
> I meant something like:
>
> {section name=j start=0 loop=10 step=1}
> {php} $xx={$smarty.section.j.index}; echo $xx; {/php}
> {/section}
>
In my opinion it's pointless. You should separate your code and templates.
If you need to do something that depends on smarty variables - better
way is to write some custom funtion (plugin) that takes
{$smarty.section.j.index} as an argument (for example).
--
Wiktor Walc
http://phpfreelancer.net
[Back to original message]
|