Hi! Thank you Alfredo
testing right now this after this night, when i was sure i had give a try the way you say, but may i confused something into the
http://area51.phpbb.com/docs/dev/master ... quest.html
doing the way you say it return me the entire array of the form and not the specified needed, so i feel uncomfortable with a result like this, where i expect a single var of the array:
Code: Select all
$ug = $this->request->variable('w3all_displayonlyfirstpost', ['u_groups' => '']);
it return:
Code: Select all
Array ( [u_groups] => 1 [forums_ids] => all,87,45 [rep_mode] => 0 [rep_content] => <h3>PREPENDED content You can only view the first post into this topic</h3> )
PS and for what it worth to mention this (that's not into documentation):
Code: Select all
$ug = $this->request->variable('w3all_displayonlyfirstpost', ['' => '']);
return the entire array again, so may i will use this way instead of
Code: Select all
$POST_data = $this->request->get_super_global(\phpbb\request\request_interface::POST);
but Is it consistent or may one day will become not usable?
Is this the way to get an entire array from a form here?
It is ok, since if i try to get a specified one, it fail some way (if i am not wrong in something)
[EDITED]