core
core copied to clipboard
An extensible micro-framework for PHP
hello, How can I allow multiple words in a route? //domain.com/detroit //domain.com/new-york $city='detroit|miami|new-york|boston'; F::route('/('.$city.')', function(){ ... });
Hi! this is my `index.php` file: ```PHP
Find an alternative to the following or directly initialize the array as empty since the params are already inside the route object. https://github.com/mikecao/flight/blob/2df64f37ea76ce98b97ed327c6b1f5ea2a5df2b0/flight/Engine.php#L359 This line generates conflicts when it comes...
Hello , i need to do something like the following but i can't seem to get the syntax right or something. ``` Flight::route("/$langRegex/a-url-part|another-url-part(/@permalink:[0-9a-z\-]+)", function ($permalink) { //...rest of code });...
- Removed $pass property on net\Route - Removed $pass parameter on net\Router::map - Added $config property on net\Route - Added $config parameter on net\Router::map - Made dispatchRoute replaceable by the...
``` class Greeting { public static function hello($params) { echo 'hello '.$params['planet'].'!'; } } ``` //it would be interesting to be able to pass parameters. It would reduce my code...
Is it possible to cache the current routes? For max performance? Examples: 1. https://github.com/nikic/FastRoute#caching 2. https://github.com/laravel/framework/blob/8.x/src/Illuminate/Foundation/Console/RouteCacheCommand.php
`# php8.1 --version` ---- ``` PHP 8.1.0 (cli) (built: Nov 25 2021 20:22:03) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.0, Copyright (c) Zend Technologies with Zend OPcache v8.1.0,...
Hi, I don't know if it's an issue or if it's my bad, but I've a problem with the routing and the file .htaccess I put my index.php in the...