skip to Main Content

Slim routing in PHP-DI container

I'm moving a project of mine into Slim Microframework, by using PHP-DI containerization. I need to POST some JSON data to http://localhost/api/base (XAMPP) and get a confirmation (at least at the beginning). This is my index.php: <?php use PsrHttpMessageResponseInterface as…

VIEW QUESTION

PHP SlimExceptionHttpNotFoundException 404 Not Found and nothing is helping – Apache

I'm creating an web app, and I can't move because of Slim 4. It's showing up this error: Fatal error: Uncaught SlimExceptionHttpNotFoundException: Not found. in C:xampphtdocsprojectfolderappvendorslimslimSlimMiddlewareRoutingMiddleware.php:91 Stack trace: #0 C:xampphtdocsprojectfolderappvendorslimslimSlimRoutingRouteRunner.php(72): SlimMiddlewareRoutingMiddleware->performRouting(Object(SlimPsr7Request)) #1 C:xampphtdocsprojectfolderappvendorslimslimSlimMiddlewareDispatcher.php(81): SlimRoutingRouteRunner->handle(Object(SlimPsr7Request)) #2 C:xampphtdocsprojectfolderappvendorslimslimSlimApp.php(215): SlimMiddlewareDispatcher->handle(Object(SlimPsr7Request)) #3 C:xampphtdocsprojectfolderappvendorslimslimSlimApp.php(199): SlimApp->handle(Object(SlimPsr7Request))…

VIEW QUESTION
Back To Top
Search