Created
December 8, 2019 19:40
-
-
Save ribafs/3d02e39aeba881741a903ec4b981b242 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
De dentro do diretório public | |
<?php | |
require_once '../vendor/autoload.php'; | |
use \PlugRoute\PlugRoute; | |
use \PlugRoute\RouteContainer; | |
use \PlugRoute\Http\RequestCreator; | |
$route = new PlugRoute (new RouteContainer(), RequestCreator::create()); | |
//$route::get( route: '/', function(){ | |
$route->get('/', function(){ | |
echo 'basic route'; | |
}); | |
$route->on(); | |
O erro agora: | |
Fatal error: Uncaught Exception: The route could not be found. in /var/www/html/pdoproject/vendor/erandir/plug-route/src/Error.php on line 9 | |
( ! ) Exception: The route could not be found. in /var/www/html/pdoproject/vendor/erandir/plug-route/src/Error.php on line 9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment