Hey guys,
On one of the sites I’m working on there’s a custom php search form I’ve written, and part of it has a list of categories on the side which are checkboxes.
So naturally they all share the name=“category[]” property so that they’re accessible as an array. Nothing crazy going on there.
Yet the resulting GET query string like below results in the following sorts of php errors.
(i.e. “/resources/search?keywords=test&categories;[]=109”)
(the forum is replacing the percent5B percent5D special chars in the above).
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: libraries/Template.php
Line Number: 322A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: libraries/Template.php
Line Number: 326A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: libraries/Template.php
Line Number: 322
A PHP Error was encountered
Severity: Notice
If you look in the Template library you can see it’s freaking out when the ee()->config->_global_vars are being processed… it seems like it doesn’t support this functionality?
I’m not missing something am I? Has anyone else got something like this working?