Ray C Ray C - 1 year ago 138
Smarty Question

Smarty. User variable as Object

I want to use smarty variable as the object key, but I can not make it working.


is the array, and
is string variable.
But it does not work as expected.

When I use


it works,



with the
assigned "iphone", does not work.

Any idea?

Answer Source


I have changed quote to double quote and it works. So when I used following:


it works like charm.

Thank you.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download