Skip to content

Commit

Permalink
updated examples for new API
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainN committed May 23, 2013
1 parent d22930f commit 36bdf07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/BasicForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

$form = new OnceForm('my_form');

if ( $form->isRequest )
if ( $form->is_request() )
{
if ( $form->isValid )
{
Expand Down Expand Up @@ -96,7 +96,7 @@
</table>

<pre>
isRequest: <?php var_dump( $form->isRequest ) ?>
isRequest: <?php var_dump( $form->is_request() ) ?>
isValid: <?php var_dump( $form->isValid ) ?>

<?php print_r( $form->validators ) ?>
Expand Down
4 changes: 2 additions & 2 deletions examples/DynamicForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
$form1->parse_form( $html );
$form1->check_request();

if ( $form1->isRequest )
if ( $form1->is_request() )
{
$form1->validate();

Expand Down Expand Up @@ -132,7 +132,7 @@
</table>

<pre>
isRequest: <?php var_dump( $form1->isRequest ) ?>
isRequest: <?php var_dump( $form1->is_request() ) ?>
isValid: <?php var_dump( $form1->isValid ) ?>

<?php print_r( $form1->validators ) ?>
Expand Down

0 comments on commit 36bdf07

Please sign in to comment.