Unable to use library from composer |
Hello,
I have a problem with my composer library. I just start to use composer so, I made the setup and I have in my Application folder the composer.json, the composer.lock, I installed the phpspreadsheet library. All the files are in the vendor folder. Finally, I change my config.php with the autoload composer to TRUE. I have always the same error : Code: Message: Class 'Spreadsheet' not found What have I forgotten ? Thanks fot the help. François
(01-09-2018, 07:47 AM)fwillemin Wrote: Hello, Did you add Code: use PhpOffice\PhpSpreadsheet\Spreadsheet; in the head? https://phpspreadsheet.readthedocs.io/en/develop/ edit: is the vendor folder in the application folder?
Hello,
I tried to set those lines in the function so it will not work... I put them in the head and now it's ok. Thanks for your help. |
Welcome Guest, Not a member yet? Register Sign In |