Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CodeIgniter AngularJS App
=========================

Sample App based on CodeIgniter and AngularJS.
Sample App based on CodeIgniter and AngularJS.
I will make changes here.
6 changes: 3 additions & 3 deletions application/controllers/api/projects.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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);
}
}

Expand Down