|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
fmallet Smarty n00b
Joined: 02 Oct 2011 Posts: 2
|
Posted: Sun Oct 02, 2011 8:02 pm Post subject: associative array in smarty template |
|
|
I use Smarty3, and I ve tried several tests and unfortunately, it seems that the code {json_encode(array("message"=>"my message"))} in the smarty template doesn't work, a syntax error appears. The code {json_encode(array("message1","message2"))} works fine. May be the "=>" is not good interpreted by compiler. Thanks in advance if you have a solution. Thank you for your feeback. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
|
Back to top |
|
fmallet Smarty n00b
Joined: 02 Oct 2011 Posts: 2
|
Posted: Sun Oct 02, 2011 9:12 pm Post subject: associative array in smarty template |
|
|
Thanks .. I ve tested It's work fine thank you for your support. Next time I will read better the documentation before send a post. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|