[eluser]Unknown[/eluser]
I am new to CodeIgniter but so far am excited to use the framework more.
I have a model which is called getUsers shown as follows:
Code:
function getUsers(){
$query = $this->db->query("SELECT * FROM users");
}
This will return fields like user_id, username,activation, expiration. This to my understanding will be returned into result()
How do I take that data and bring it over to a controller function which will then take that data and put it in a table?
Any help understanding how this would work would be well appreciated. Further after that I will probably need help moving that into a view and getting the table formatted.