Skip to content

Instantly share code, notes, and snippets.

@Kcko
Last active June 29, 2023 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kcko/e4e184d21d580b6b736277fe36f2005a to your computer and use it in GitHub Desktop.
Save Kcko/e4e184d21d580b6b736277fe36f2005a to your computer and use it in GitHub Desktop.
<?php
if ($form['submit']->isSubmittedBy()) {
// ...
}
or
if ($form->isSubmitted() === $form['submit']) {
// ...
}
or
public function validate($form)
{
if ($form->isSubmitted()->getName() == 'reloadSelect')
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment