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

Redirecting to 404 for some reason?

richard's Avatar

richard

04 Dec, 2015 07:31 AM

In the file i have this route that works fine
$app->get('/folder/:query/(:modifier)', function($query, $modifier = null) use ($app) {

and after that i have this one but it doesnt work, redirects to my custom 404 page all the time
$app->get('/(/:arg0(/:arg1(/:arg2(/:arg3))))', function($arg0 = null, $arg1 = null, $arg2 = null, $arg3 = null) use ($app) {

am i forgetting something? I bet its something really simple... i tried removing the first route but i t didn't work either..

i'm trying to access /arg1/arg2/ etc...

ANSWER: forgot to include route file.

  1. richard closed this discussion on 04 Dec, 2015 09:00 AM.

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

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