The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Route to section

TS1997's Avatar

TS1997

06 Mar, 2016 05:37 PM

Hello

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. 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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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