When creating an image class, it throws an error! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: When creating an image class, it throws an error! (/showthread.php?tid=75152) |
When creating an image class, it throws an error! - videoproc - 12-31-2019 Hi! When creating an image class, it throws an error!!! Code: $image = Config\Services::image(); Error Class 'App\Controllers\Config\Services' not found CI version 4.0.0-rc.3 RE: When creating an image class, it throws an error! - InsiteFX - 12-31-2019 You should load it like this: PHP Code: use Config\Services; Works fine here. RE: When creating an image class, it throws an error! - dave friend - 12-31-2019 (12-31-2019, 01:56 AM)videoproc Wrote: Hi! Try a fully-qualified namespace. (note the slash before Config) Code: $image = \Config\Services::image(); |