Create getAll() in project controller

This commit is contained in:
Karsten Heiken
2011-07-28 20:18:31 +02:00
parent 2a8f4e1b97
commit 7821be22e7

View File

@@ -61,6 +61,15 @@ class Project extends CI_Model {
return $result; return $result;
} }
/**
* Get all projects from the database.
*/
public function getAll() {
$result = $this->db->get('projects')->result_array();
return $result;
}
/** /**
* Get all available configurations from a specific project. * Get all available configurations from a specific project.
* *