diff --git a/docs/USAGE b/docs/USAGE index 909042d..7a17f2c 100644 --- a/docs/USAGE +++ b/docs/USAGE @@ -185,11 +185,11 @@ or error to the user. To use it : require ("domframework/form.php"); $errors = array (); - $f = new form (); + $f = new Form (); // Check CSRF and get the provided values if they exists $values = $f->values (); // Define here the fields (can be done multiple times) - $field = new formfield ($name, $label); + $field = new Formfield ($name, $label); // Add the parameters to the field $fields[] = $field; unset ($field); diff --git a/src/Form.php b/src/Form.php index b4a91b1..abd418c 100644 --- a/src/Form.php +++ b/src/Form.php @@ -598,7 +598,7 @@ class Form /** The definition of a formfield */ -class formfield +class Formfield { /** The form name */