When creating webpages with navigation and menus, it is often nessesary to assign css class for menu item that the visitor is currently viewing. This post shows an example how to get current route name from a template for that purpose.
Categories
- Magento (2)
- PHP, MySQL (10)
- Symfony (10)
- Uncategorized (1)
- UNIX/Linux in general (3)
My project links
Recommended links