From 99029a82ba863efdb7cf9fd01012c0abecaf88b4 Mon Sep 17 00:00:00 2001 From: iHmD Date: Fri, 24 Jun 2016 10:08:19 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1452bdb..e169d07 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ $app->get('/api/myEndPoint',function ($req, $res, $args) { //Here you expect 'username' and 'age' parameters if($this->apiValidation->hasErrors()){ //There are errors, read them - $errors = $this->getErrors(); + $errors = $this->apiValidation->getErrors(); /* $errors contain: array( @@ -105,7 +105,7 @@ $app->get('/foo', function ($req, $res, $args) { //Here you expect 'username' and 'age' parameters if($this->validation->hasErrors()){ //There are errors, read them - $errors = $this->getErrors(); + $errors = $this->apiValidation->getErrors(); /* $errors contain: array( From f6f884c77b26a1d49a98ee72166801b38c77048e Mon Sep 17 00:00:00 2001 From: Ayoub Hamdaoui Date: Fri, 24 Jun 2016 12:42:45 +0200 Subject: [PATCH 2/3] fix README.md examples v2 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e169d07..a4df350 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ $app->get('/foo', function ($req, $res, $args) { //Here you expect 'username' and 'age' parameters if($this->validation->hasErrors()){ //There are errors, read them - $errors = $this->apiValidation->getErrors(); + $errors = $this->validation->getErrors(); /* $errors contain: array( @@ -126,7 +126,7 @@ $app->post('/bar', function ($req, $res, $args) { //Here you expect 'username' and 'age' parameters if($this->validation->hasErrors()){ //There are errors, read them - $errors = $this->getErrors(); + $errors = $this->->validation->getErrors(); } else { //No errors } From 7eabe720f6a863c43486275aabe3f2ec6dc88d78 Mon Sep 17 00:00:00 2001 From: Ayoub Hamdaoui Date: Fri, 24 Jun 2016 15:47:15 +0200 Subject: [PATCH 3/3] fix README.md examples v3 (hope all is ok !!!) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a4df350..02fcca0 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ $app->post('/bar', function ($req, $res, $args) { //Here you expect 'username' and 'age' parameters if($this->validation->hasErrors()){ //There are errors, read them - $errors = $this->->validation->getErrors(); + $errors = $this->validation->getErrors(); } else { //No errors }