From c4f611c81e3a59dce234407f35ee283bcd2494b7 Mon Sep 17 00:00:00 2001 From: Dominique FOURNIER Date: Thu, 21 Jul 2022 14:20:23 +0200 Subject: [PATCH] Formfield is now with the Camelcase --- docs/USAGE | 4 ++-- src/Form.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 */