Answer the question
In order to leave comments, you need to log in
How to run Slim on XAMPP?
Hello!
In the process of searching for a solution through Yandex, I found an identical question, to which I have nothing to add. The situation is the same 1 in 1: https://ru.stackoverflow.com/questions/1010320/sli...
In the same way I
tried to install Slim strictly according to the manual, I got the same errors. Maybe someone also came across and found a solution?
My index is in public:
<?php
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;
require __DIR__ . '/../vendor/autoload.php';
$app = AppFactory::create();
$app->setBasePath("/Slimtest/public");
$app->get('/', function (Request $request, Response $response, $args) {
$response->getBody()->write("Hello world!");
return $response;
});
$app->run();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question