Create getAll() in project controller
This commit is contained in:
@@ -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.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user