![]() |
Unable to use library from composer - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Unable to use library from composer (/showthread.php?tid=69710) |
Unable to use library from composer - fwillemin - 01-09-2018 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 RE: Unable to use library from composer - Paradinight - 01-09-2018 (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? RE: Unable to use library from composer - fwillemin - 01-10-2018 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. |