Welcome Guest, Not a member yet? Register   Sign In
When creating an image class, it throws an error!
#2

You should load it like this:

PHP Code:
use Config\Services;

class 
SomeClass
{
    public someMethod
    
{
        $image Services::image();
    }


Works fine here.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: When creating an image class, it throws an error! - by InsiteFX - 12-31-2019, 04:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB