Add new in-place editor

This commit is contained in:
Eike Foken
2011-09-14 00:09:50 +02:00
parent 0c0b00f4e3
commit 51f3e022fe
8 changed files with 711 additions and 65 deletions

View File

@@ -213,7 +213,7 @@ class Project extends CI_Model {
* @param integer $projectId The ID of the project to update
* @param array $data Array with data to update
*/
public function update($projectId, $data) {
public function update($data, $projectId) {
return $this->db->where('id', $projectId)->update('projects', $data);
}