Open darron1217 opened 6 years ago
How about implementing it using explode()
?
$name = 'options[birthday][test]';
$name = str_replace(']', '', $name);
$vars = explode('[', $name);
print_r($vars);
// Array
// (
// [0] => options
// [1] => birthday
// [2] => test
// )
Summary of issue
Recently I'm utilizing json type column a lot This made me to use input name like this
<input name="options[birthday]" />
AsgardCMS's input macro is simple, and working well with saving data. But retrieving is not working with this situation
Form::normalInput('options[birthday]', 'Birthday', $errors, $object)
Steps to reproduce
Form::normalInput
on viewSystem Details
Asgardcms/Platform
version: 3.5