flightphp

Flight PHP Routing from Subdirectory

一曲冷凌霜 提交于 2019-12-06 06:57:17
问题 So I'm using the Flight PHP microframework (http://flightphp.com/) to do routing. My question is, how can I run the router from within a subdirectory? What I mean is, essentially, run it 'sandboxed' within a folder. As in, a request to '/' just pulls the regular index.php file. But a request to '/flight/file' would load the URL using Flight. I know you can't just dump it in a folder on the server and expect it to work because FlightPHP expects the URLs relative to the root. Is there a way to

Flight PHP Routing from Subdirectory

爱⌒轻易说出口 提交于 2019-12-04 12:16:20
So I'm using the Flight PHP microframework ( http://flightphp.com/ ) to do routing. My question is, how can I run the router from within a subdirectory? What I mean is, essentially, run it 'sandboxed' within a folder. As in, a request to '/' just pulls the regular index.php file. But a request to '/flight/file' would load the URL using Flight. I know you can't just dump it in a folder on the server and expect it to work because FlightPHP expects the URLs relative to the root. Is there a way to run FlightPHP isolated in a directory with the rest of the website running regular PHP? EDIT I tried