Probably a quick fix but I’m trying to get my head around using Slim PHP middleware for my applicaton but more specifically, the SESSION middleware provided by bryanjhv.
I’m using 000webhost to host my API and database however I cannot seem to get the middleware to work.
There error that is occuring which suggests it cannot find the middleware classes/files. Here:
My API code:
$app = new \Slim\App; $app->add(new \Slim\Middleware\Session([ 'name' => 'dummy_session', 'autorefresh' => true, 'lifetime' => '1 hour' ]));
As i said, I suspect it has something to do with my file structure.
If anyone has any ideas on this, please let me know.