1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

class Leden_model extends CI_Model {

function __construct(){
parent::__construct();
}

function allLeden()
{
$data = array();
$this->db->select();
$query = $this->db->get('leden');

if ($query->num_rows() > 0)
{
foreach ($query->result_array() as $row)
{
$data[] = $row;
}
}
$query->free_result();
return $data;
}

}

?>