0

I would like to call a php function with parameters after clicking a Button. For example something like the following:

$buttonNew = new Button('Click me');

$buttonNew ->onClick(function (Form $form)
{
$form->model->set('dbUserId', 'nooooo');
});

Is there any way I can do it?

I have looked in the next link but without success. https://agile-ui.readthedocs.io/en/latest/button.html

Thank you

nick
  • 229
  • 2
  • 9

0 Answers0