core
core copied to clipboard
An extensible micro-framework for PHP
Hi, I was trying to use a custom html file to replace the default error page, but the body returns 200 OK instead of 404 Not Found. Tried the code...
Hi there, I one of Flightphp user and I maintain the Persian website of FlightPHP.ir ---------- Purpose is to implement the following route via flight: ```php Flight::route('/@id:[0-9]{1,10}-@title', function($title, $id){ echo...
Currently, Flight appears to break when using named parameters when calling static methods. For example: ```php Flight::set('flight.views.path', __DIR__.'/../src/UI/views'); Flight::route('GET /', function () { Flight::render('UI_VIEW_MOCKUP', key: 'main_content'); // breaks Flight::render('basic_layout'); });...
I have a filter after start, that updates a session cookie. I have a route that returns Flight:json() and if the filter is active, nothing is returned for this route....
Hello I'm using prefix with my tables, and i've some problems with rawQuery with this rawQuery ``` $db->rawQuery("SELECT COUNT(p.id_product) count FROM product p LEFT JOIN product_lang pl on pl.id_product=p.id_product WHERE...
Static files are not loaded while using route with parameter. In Node.js and in Python, every framework gives us the options to choose folder for "views" and static files such...
Hi, I want to use flightPHP on Heroku. But I got 403 Error on Heroku. on Local server, this code went well. Is This problem because of my code or...
public function find(&$data, $key = null, $value = null, $force = false) { $link = explode('.', $key); foreach ($link as $keys => $part) { if (isset($data[$part])) { if ($force) {...
I have blade and eloquent running with flightphp along with JWT I was wondering whether its possible to protect api routes I currently have this at the moment. Is there...
`Flight::etag('test')` creates a header that's not wrapped in double quotes, but [this instructs](https://tools.ietf.org/html/rfc7232#section-2.3.1) ETag should do so.