[eluser]jozeunico[/eluser]
Can I do the $query->free_result() after the return in the function in my model ?
I mean it works if I do this:
function getAnios($id_fondo){
$sql = "SELECT ani_inicio,ani_final from uia_fondos WHERE id = $id_fondo;";
$anios = $this->db->query($sql);
return $anios->row_array();
$anios->free_result();
}
Or i need to return the object $anios to my controller and then do the $anios->free_result()?
Thanks everybody for your time.