bcosca / fatfree

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request redirect() Method like reroute()

dduers opened this issue · comments

Hello community,

There is a reroute() method available which is good, if you don't want to pass a query string.
Is there also a redirect() method which can be used when you have a query string?
It would be nice to have something alike, otherwise we have to call header('Location; ...') followed by an exit() call each time.
Maybe there is a better solution?

Thanks for consideration,
Daniel

Does this point you in a positive direction?

https://fatfreeframework.com/3.7/quick-reference#ONREROUTE

as far as I know, you can use a query string in your reroute url

Thank you, I found that my BEFOREROUTE callback stripped the querystring.