Fix HTMLForm's documentation example
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 22 Apr 2013 18:20:41 +0000 (20:20 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 22 Apr 2013 18:20:41 +0000 (20:20 +0200)
- suppressReset() is useless since it's disabled by default now
- displayForm() requires an argument

Change-Id: I1125460611e74a3812784954a935fab612a7881c

includes/HTMLForm.php

index b7bdcfd..cd6c863 100644 (file)
@@ -83,9 +83,8 @@
  * $form = new HTMLForm( $someFields );
  * $form->setMethod( 'get' )
  *      ->setWrapperLegendMsg( 'message-key' )
- *      ->suppressReset()
  *      ->prepareForm()
- *      ->displayForm();
+ *      ->displayForm( '' );
  * @endcode
  * Note that you will have prepareForm and displayForm at the end. Other
  * methods call done after that would simply not be part of the form :(