Php-mvc: Class 'Twig\Loader\Filesystemloader' not found

0

Do not work app.
screenshot_1

weblegko picture weblegko  ·  26 May 2020

Most helpful comment

6

Replacing line 47 with:
$loader = new \Twig\Loader\FilesystemLoader(dirname(__DIR__) . '/App/Views');
should get everything working for you. Issue is caused by Filesystemloader needing to be FilesystemLoader

redarrowdriver picture redarrowdriver  ·  27 May 2020

All comments

6

Replacing line 47 with:
$loader = new \Twig\Loader\FilesystemLoader(dirname(__DIR__) . '/App/Views');
should get everything working for you. Issue is caused by Filesystemloader needing to be FilesystemLoader

redarrowdriver picture redarrowdriver  ·  27 May 2020
0

Thank you for your example.

The currect are FilesystemLoader and not Filesystemloader.

ribafs picture ribafs  ·  14 Jun 2020