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. 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); } }