flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.6k stars 407 forks source link

current url #436

Closed oscarlosan closed 6 months ago

oscarlosan commented 3 years ago

Hello, How can I get the current url?

try: Flight::route ();

magikstm commented 3 years ago

https://flightphp.com/learn#requests

$url = Flight::request()->query['url'];

or

$url = Flight::request()->query->url;

oscarlosan commented 3 years ago

magikstm thank you very much for the reply. This framework is incredible. I am flying with this framework. It is much better than F3 and Lumen. Super intuitive.

oscarlosan commented 3 years ago

what difference is there with: Flight::router()->current ();