so i am trying to pass id from a link i created in views to my controller method however i get the error that unidentified variable id
below is the link in view
<a href="<?php echo base_url();?>doctors/display_schedule/<?php echo $id['d_id']; ?>" >set schedule</a>
and this is the controller method:
public function display_schedule($d_id)
{
$data['id'] = $this->doctor_model->get_info_by_id($d_id);
$this->load->view("doctors_schedule_view",$data);
}
ps, if you want a look at my model inform me