-
When I try to validate the token in the middleware, the output generated is not as expected. Here's an example of the middleware I created:
```php
class AuthMiddleware
{
public function befo…
-
I think isHydrated() should be cleared when we reset()
```php
$user->find();
echo $user->isHydrated() ? "Yes" : "No"; // Yes
echo $user->name; // "John Doe"
$user->reset();
echo $user->isHyd…
-
When I use Middlewares as FQCN, Flight doesn't call the constructor, it calls directly the before() and after() methods, **and always must be declared as static**... Now that support for DI container…
-
It would be great if the version number of Flight could be included in the Flight.php file. This makes it easy to check which version you are using.
Thanks by the way for making Flight.php, i'm usi…
-
I love the where conditions because it makes the query code so much easier to read. A single authorisation check joins 3 tables with conditions on two fields, sort order, blah blah.. Such a pain to re…
-
I'm having some strange problems when using a custom PK... Not too sure where it is, but my gut feel is two bugs are related somehow.
Assume a DB with:
```sql
CREATE TABLE my_table (my_pk TEXT …
-
I mistyped my own code, but in so doing, accidentally ended up with this...
```
http://localhost/elonmusk/profile
```
```php
Flight::route("/@user/@module", function(string $module, string …
-
Hello, before I used the following function to minify my html and it worked for me. With flightphp it does not minimize the html. Is there something stopping ob_start?
`
-
In some cases, you need to view the generated sql for debugging.
Thanks!
SyanH updated
3 months ago
-
The new `->streamWithHeaders` is good, but there is a bug... ?
If you do not have a `"status" => 200` defined in the array, then there is an exception in Engine.php line 490: `Undefined array key "…