[eluser]Perkin5[/eluser]
I have discovered that in order to get pagination to work, I have to use model code like this:
Code:
function get_stuff($num,$offset){
$results = $this->db->get('stuff',$num,$offset)->result();
return $results;
Can someone explain how this works? The two variables $num and &offset; have not been declared anywhere so how does codeigniter know what they are?