Created
January 31, 2011 15:31
-
-
Save webmozart/804190 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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