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
I do this on most projects. How I achieve this is like this;
List Patients
It's matching the current uri string, with the links href. If it matches, it add's an active class to the link.
Hope this helps.
I have also used site_url over base_url