dracoblue.net

Embedding Array fields as Attributes in Smarty

If you want to use an arrayfields value as attribute for a function, you can't use:

{func var="test $foo[bar] test"}  <-- sees $foo[bar]

like described in the

manual. You have to use this instead:

{func var="test `$foo.bar` test"}  <-- sees $foo[bar]
In open source, php, smarty by
@ 21 Aug 2007, Comments at Reddit & Hackernews

Give something back

Were my blog posts useful to you? If you want to give back, support one of these charities, too!

Report hate in social media Campact e.V. With our technology and your help, we protect the oceans from plastic waste. Gesellschaft fur Freiheitsrechte e. V. The civil eye in the mediterranean

Recent Dev-Articles

Read recently

Recent Files

About