CodeIgniter Forums
trying to use phpSpreadsheet - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: trying to use phpSpreadsheet (/showthread.php?tid=70002)

Pages: 1 2


RE: trying to use phpSpreadsheet - dave friend - 02-08-2018

(02-08-2018, 01:54 PM)Wouter60 Wrote: Right, that's why in this case, the require statement must be used at the top of the controller. The namespace can't be used if the third party php file wasn't included with require or require_once.

Yes that is true. I should have realized you were speaking explicitly about the require 'vendor/autoload.php' statement. Instead I understood you to be saying any 'require' require statement. Doh! Blush