diff --git a/config/Validation.php b/config/Validation.php new file mode 100644 index 0000000..f6bc5b4 --- /dev/null +++ b/config/Validation.php @@ -0,0 +1,40 @@ + $nom, + 'commentaire' => $comm, + 'estFait' => $estFait + ); + } + + public static function validerUnIntSuperieurZero($int) + { + return filter_var($int, FILTER_VALIDATE_INT, array("min_range"=>1)); + } +} diff --git a/config/dsn.php b/config/dsn.php new file mode 100644 index 0000000..f3c1c6a --- /dev/null +++ b/config/dsn.php @@ -0,0 +1,5 @@ +