Formfield is now with the Camelcase
This commit is contained in:
@@ -185,11 +185,11 @@ or error to the user.
|
|||||||
To use it :
|
To use it :
|
||||||
require ("domframework/form.php");
|
require ("domframework/form.php");
|
||||||
$errors = array ();
|
$errors = array ();
|
||||||
$f = new form ();
|
$f = new Form ();
|
||||||
// Check CSRF and get the provided values if they exists
|
// Check CSRF and get the provided values if they exists
|
||||||
$values = $f->values ();
|
$values = $f->values ();
|
||||||
// Define here the fields (can be done multiple times)
|
// 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
|
// Add the parameters to the field
|
||||||
$fields[] = $field;
|
$fields[] = $field;
|
||||||
unset ($field);
|
unset ($field);
|
||||||
|
|||||||
@@ -598,7 +598,7 @@ class Form
|
|||||||
|
|
||||||
/** The definition of a formfield
|
/** The definition of a formfield
|
||||||
*/
|
*/
|
||||||
class formfield
|
class Formfield
|
||||||
{
|
{
|
||||||
/** The form name
|
/** The form name
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user