Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling routes with a dash "-" #19

Closed
scragg0x opened this issue Sep 26, 2012 · 2 comments
Closed

Handling routes with a dash "-" #19

scragg0x opened this issue Sep 26, 2012 · 2 comments

Comments

@scragg0x
Copy link

Is there a way to handle routes that contain a dash in it. The only solution I came up with is to do a regex rewrite but it has to be done for each action.

@laruence
Copy link
Owner

Hey, there are at least three ways:

  1. use a custom route
  2. use plugin, and handle the "-" by using $request->getRequestUri and setRequestUri in routerStartup hook
  3. use plugin, and change the router result by using $request->getControllerName, set**Name in routerShutdown hook

thanks

@laruence
Copy link
Owner

no feedback for a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants