Skip to content

Commit 23aa73c

Browse files
committed
Add public dir to slim 4.11
1 parent c669d8b commit 23aa73c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
url="$base/$fw/index.php/hello/index"
2+
url="$base/$fw/public/index.php/hello/index"

slim-4.11/index.php renamed to slim-4.11/public/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22
use Slim\Factory\AppFactory;
33

4-
require __DIR__.'/vendor/autoload.php';
4+
require __DIR__.'/../vendor/autoload.php';
55

66
// Instantiate App
77
$app = AppFactory::create();
88

99
// xampp
10-
$app->setBasePath("/PHP-Frameworks-Bench/slim-4.11/index.php");
10+
$app->setBasePath("/PHP-Frameworks-Bench/slim-4.11/public/index.php");
1111

1212
// Add error middleware
1313
$app->addErrorMiddleware(false, true, true);

0 commit comments

Comments
 (0)