![]() |
I have reoutes with custom placeholder like:
Code: // route Code: // controller When accessed like http://localhost:8080/all show Code: all but when accessed with http://localhost:8080/all/done just show 404. by edit the route with Code: $routes->get('(:unique)/(:any)', 'Pages::browse/$1/$2'); Code: all whats wrong with the regex?
Check the route regex with `php spark routes`.
PHP Code: $routes->addPlaceholder('unique', '[a-z0-9]{40}|all'); (01-27-2022, 11:43 PM)iRedds Wrote: Thanks @iRedds |
Welcome Guest, Not a member yet? Register Sign In |