From 7821be22e7fa6fe8daaa7b658f19afc786b65554 Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Thu, 28 Jul 2011 20:18:31 +0200 Subject: [PATCH] Create getAll() in project controller --- application/models/project.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/models/project.php b/application/models/project.php index bb3dfb7..fcb5f45 100644 --- a/application/models/project.php +++ b/application/models/project.php @@ -61,6 +61,15 @@ class Project extends CI_Model { 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. *