From 7c00a271028f00747ff3b87aecd22de0096a7696 Mon Sep 17 00:00:00 2001 From: delyan-georgiev Date: Thu, 22 Oct 2015 09:06:47 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f0e056c..fbc9ebb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ CodeIgniter AngularJS App ========================= -Sample App based on CodeIgniter and AngularJS. \ No newline at end of file +Sample App based on CodeIgniter and AngularJS. +I will make changes here. From a75a2f8b3b696a2a6e4d31fa38df3662f1aac138 Mon Sep 17 00:00:00 2001 From: Delyan Georgiev Date: Tue, 17 Oct 2017 10:36:25 +0300 Subject: [PATCH 2/2] change error messages --- application/controllers/api/projects.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/api/projects.php b/application/controllers/api/projects.php index fc52e94..875799c 100644 --- a/application/controllers/api/projects.php +++ b/application/controllers/api/projects.php @@ -25,7 +25,7 @@ public function edit_get($id = NULL) { if ( ! $id) { - $this->response(array('status' => false, 'error_message' => 'No ID was provided.'), 400); + $this->response(array('status' => false, 'error_message' => 'Missing Id property.'), 400); } $this->response($this->project_model->get($id)); @@ -36,12 +36,12 @@ public function save_post($id = NULL) if ( ! $id) { $new_id = $this->project_model->add($this->post()); - $this->response(array('status' => true, 'id' => $new_id, 'message' => sprintf('Project #%d has been created.', $new_id)), 200); + $this->response(array('status' => true, 'id' => $new_id, 'message' => sprintf('Project #%d was created.', $new_id)), 200); } else { $this->project_model->update($id, $this->post()); - $this->response(array('status' => true, 'message' => sprintf('Project #%d has been updated.', $id)), 200); + $this->response(array('status' => true, 'message' => sprintf('Project #%d was updated.', $id)), 200); } }