2020-03-30, 05:55 PM
Hello there,
currently working on a plugin that needs to create an admin settings page, where I need to be able to 'insert' through a form.
I'm currently just debugging in Chrome, where I'm seeing this:
This is the 'code':
Now, first of all, my knowledge of using the PHP Form Class is taken from github projects and other plugins, meaning I am uncertain of a lot of information. My bad there I know.
What I need is to know, since those inputs share same name, how do I access them via the $mybb->input['forums'] ?
Also in the code snip above, what does
this magic do ?
Appreciate any help, since I'm still in early learning phases of MyBB development, and not really a huge PHP coder ...
currently working on a plugin that needs to create an admin settings page, where I need to be able to 'insert' through a form.
I'm currently just debugging in Chrome, where I'm seeing this:
This is the 'code':
$form_container->output_row("Available Forums", "Which forums are the vote enabled in", $form->generate_forum_select("forums[]", $forumsIds->fid, array("multiple" => true), true));
Now, first of all, my knowledge of using the PHP Form Class is taken from github projects and other plugins, meaning I am uncertain of a lot of information. My bad there I know.
What I need is to know, since those inputs share same name, how do I access them via the $mybb->input['forums'] ?
Also in the code snip above, what does
$forumsIds->fid
this magic do ?
Appreciate any help, since I'm still in early learning phases of MyBB development, and not really a huge PHP coder ...