What\'s the quickest and easiest way to add the \"active\" class to a link, so it can be styled? I\'m developing an app in CI, and I\'d like a quick easy way to do this automat
You can do this way by creating helper with following
router->fetch_class(); return ($class == $controller) ? 'active' : ''; } }
then apply it in menu view
Services