core
core copied to clipboard
An extensible micro-framework for PHP
Hi, I am interested to use a dependency container(Ex: PHP-DI) with Flight. Is there any way of adding/binding it with flight?
Hi! I am sending data from Controller to View via GET|POST settings in router. Well, here is my Router: ``` $admin = new AdminController(); Flight::route('GET|POST /admin/articles', [$admin, 'articles']); Flight::route('GET /admin/articles/@id',...
I'm writing a REST endpoint and I need to return a custom code: `Flight::halt(601, "UPDATE NEEDED");` Unfortunately I get: `500 Internal Server Error Invalid status code. (0) #0 C:\wamp64\www\cableparks\vendor\mikecao\flight\flight\Engine.php(397): flight\net\Response->status(601)`...
Just wanted to let you know that I've developed a little example application for Flight. It's called "FlightWiki" and is a super basic wiki. You can find it [here](https://github.com/Skayo/FlightWiki)! Could...
When I was using this: ``` RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [QSA,L] ``` I got 500 error. `error_log` shows: ``` [core:error] [pid 39496:tid 2116]...
Hi @mikecao, This is a really nice project! Im so glad to integrate it into a big project of mine. One issue though, is that there is no built in...
Hi author, Hi everybody, Could you please tell me the best way to use the middleware (fast + professional + standardized) by this framework? Thanks, Vic P.
A request to `/base/books` would not be successfully handled by the following setup ``` Flight::set('flight.base_url', '/base'); Flight::route('/books', function() {}); ```
I wish to have a routing function supporting sub-domains. like kohana and laravel