Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
1.8 $mybb->get_input for arrays
#1
hi,
now we can use $mybb->get_input('xyz') instead of $mybb->input['xyz']
but we can't use $mybb->get_input instead of $mybb->input['abc']['xyz']

I think $mybb->get_input should also support these type of inputs.
for example $mybb->get_input('abc.xyz') = $mybb->input['abc']['xyz']
Reply
#2
I think the function should accept array instead of separating it with dot, for example $mybb->get_input(array('abc', 'xyz')) or $mybb->get_input(array('abc', 'xyz', '123')) for bigger depth.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)