I just start up to be a web developer. Now I create a dynamic website for the first time. I don\'t know how to set class=\"active\" to the navigation menu. Here is
class=\"active\"
You can use $this->uri->segment();
$this->uri->segment();
uri->segment(1)=="menu_name"){echo 'class="active"';}?> > Create Patient uri->segment(1)=="menu_name"){echo 'class="active"';}?> > List Patients uri->segment(1)=="menu_name"){echo 'class="active"';}?> > List Users