The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Route to section

TS1997's Avatar


06 Mar, 2016 05:37 PM


I have a website that have a dropdown menu. I want to link the dropdown links to different sections on the same page. How do I do that? I tried $app->get('/url#test') but it gave errors. I use urlFor in the menu to generate links.

Thanks in advance!

  1. Support Staff 1 Posted by Rob Allen on 06 Mar, 2016 07:10 PM

    Rob Allen's Avatar

    That has to be handled by the webpage as the fragment (#test) is not passed to PHP when you click a link.

  2. Josh Lockhart closed this discussion on 12 Feb, 2021 07:39 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac