Array support in m_Get tag

3 views
Skip to first unread message

Alexander Obuhovich

unread,
Jan 31, 2012, 10:54:46 AM1/31/12
to In-Portal Development
In-Portal has m_Get tag, that is allows to display data, that was passed from web-browser, like url parameter or form field value right on the template.
This can be easily achieved by <inp2:m_Get name="url_param_name"/> tag.

However, when it comes to multi-dimensional data structures on forms, e.g. input name on a form is like "some_name[sub_key][another_key]", then m_Get tag fails to display this, because PHP converts these keys into arrays, that should be accessed differently.

Here is the patch for square bracket support in m_Get tag.


Ready for testing.


--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
array_support_in_mget_tag_feat.patch

Dmitry A.

unread,
Jan 31, 2012, 1:28:15 PM1/31/12
to in-por...@googlegroups.com
Thanks for the Tag improvement Alex!

DA
Reply all
Reply to author
Forward
0 new messages