我正在使用 cakePhp,必须重新安装所有东西。在我更新之前一切正常,但后来我从 repo 中退出,它说我需要 7,所以我更新了,现在得到这个。
cake 和 phpinfo 说的一样
然后,如果我尝试将地址从 / 更改为 /phpmyadmin - 这些是我得到的变体
require dirname(__DIR__) . '/config/bootstrap.php';
use Cake\Network\Request;
use Cake\Network\Response;
use Cake\Routing\DispatcherFactory;
$dispatcher = DispatcherFactory::create();
$dispatcher->dispatch(
Request::createFromGlobals(),
new Response()
);
和
require dirname(__DIR__) . '/vendor/autoload.php';
use App\Application;
use Cake\Http\Server;
// Bind your application to the server.
$server = new Server(new Application(dirname(__DIR__) . '/config'));
// Run the request/response through the application
// and emit the response.
$server->emit($server->run());