Jump to content
porl

Multidimensional Arrays For WireInput

Recommended Posts

Hi there

I made a change in core/WireInputData.php to allow for a config option to allow multidimensional arrays (created a pull request as below).

https://github.com/processwire/processwire/pull/161

I posted this in another topic but realised it hadn't been visited for over a year, so thought I'd start another.

I understand the reasoning behind keeping the arrays one dimensional by default, but rather than resorting to having to use raw $_POST arrays etc. I thought a useful compromise would be a config variable to enable the behaviour override.

To use, just set $config->wireInputMultiDimensional to true.

@ryan is there any chance of this being pulled (or a cleaner/better version)?

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...