• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Services

#1
Hello

I have GetImageInfo function in my model but i get error:

Class 'App\Models\Config\Services' not found



PHP Code:
$info Config\Services::image()
            ->withFile($file_path)
            ->getFile()
            ->getProperties(true); 


How to use services in model?

I found error... solution is:

PHP Code:
$img = \CodeIgniter\Config\Services::image()
            ->
withFile($file_path)
            ->
getFile()
            ->
getProperties(true); 
Reply


Messages In This Thread
Services - by Piotr - 05-12-2019, 02:12 PM
RE: Services - by kilishan - 05-12-2019, 08:21 PM
RE: Services - by MGatner - 05-14-2019, 08:21 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.