Over-engineering for a simple system |
(04-20-2020, 01:24 AM)berendbotje91 Wrote: Perhaps not the best way to tackle your problem, but here is how I "check" the current page for the navigation. Thanks, but I'm not sure what you're doing different here than what I already have? PHP Code: class="nav-link <?= (uri_string() === 'admin/profile') ? 'active' : ''; ?>" (04-20-2020, 04:04 AM)InsiteFX Wrote: This might help you out, you may need to modify it a bit.I don't know why I didn't think of JQuery for this... thanks! |
Messages In This Thread |
Over-engineering for a simple system - by BilltheCat - 04-19-2020, 03:12 PM
RE: Over-engineering for a simple system - by berendbotje91 - 04-20-2020, 01:24 AM
RE: Over-engineering for a simple system - by BilltheCat - 04-20-2020, 05:42 AM
RE: Over-engineering for a simple system - by InsiteFX - 04-20-2020, 04:04 AM
RE: Over-engineering for a simple system - by InsiteFX - 04-20-2020, 07:58 AM
|