[eluser]theprodigy[/eluser]
[quote author="ytsejam" date="1344198342"]
Code:
class About_model extends CI_Model {
function getAll() {
$q = $this->db->get('abouts');
if($q->num_rows() > 0){
foreach ($q->result() as $row)
{
$data[] = $row;
}
return $data;
}
}
}
[/quote]
It looks like you are only returning something from this function if there are rows. Is it possible that it's returning nothing? Have you tried running print_r on the return of this function?