Skip to content

Instantly share code, notes, and snippets.

@webmozart
Created January 31, 2011 15:31
Show Gist options
  • Select an option

  • Save webmozart/804190 to your computer and use it in GitHub Desktop.

Select an option

Save webmozart/804190 to your computer and use it in GitHub Desktop.
<?php
$form = new Form();
$form->bind($request, $data);
assert true === $form->isBound();
// if request is post, form was submitted
assert true === $form->isXXX();
// if request is not post, form was not yet submitted
assert false === $form->isXXX();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment