Before
$query= $this->db->get('users');
After
return $query= $this->db->get('users');