[eluser]blinger2008[/eluser]
when i load the view without the print_r, it says no records returned. but i am passing the $person variable
Code:
function person(){
$data = array();
if($this->uri->segment(3)) {
$person=$this->people_model->get_record($this->uri->segment(3));
$this->load->view('content/person', $person);
//print_r($person);
//die();
} else {
if($query = $this->people_model->get_record()){
$data['records'] = $query;
}
}
}