![]() |
problem with 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: problem with library from composer (/showthread.php?tid=78223) |
problem with library from composer - rosogimo - 12-16-2020 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 only here you can find the best porn sites that give access to content for free https://freepornsites.mobi/ What have I forgotten ? Thanks for the help. RE: problem with library from composer - paulbalandan - 12-17-2020 How are you using it in your code? Perhaps you are forgetting the use statement at the top of the class file? RE: problem with library from composer - iRedds - 12-26-2020 PHP Code: use PhpOffice\PhpSpreadsheet\Spreadsheet; The error text "Message: Class 'Spreadsheet' not found" means that you are try to create instance a class without a namespace. With a namespace, the error text would be like this: Message: Class 'PhpOffice\PhpSpreadsheet\Spreadsheet' not found |