CodeIgniter Forums
getting file not found - 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: getting file not found (/showthread.php?tid=71364)



getting file not found - richb201 - 08-05-2018

I have included the AWS sdk in my third party directory.  I also add the above line to my module:

use third_party\AWS\S3;

This line is causing an error:

Message: Class 'S3Client' not found

Filename: controllers/Configure.php


$s3Client = new S3Client([
   'profile' => 'default',
   'region' => 'us-east-1',
   'version' => 'latest'
]);


I have a file called s3Client.php in my third party directory. In it there is:

class S3Client extends AwsClient implements S3ClientInterface
{
   use S3ClientTrait;

   public static function getArguments()
   {
       $args = parent::getArguments();


I have no idea why this is not working. Can anyone tell me ho to get my CI code to see the s3Client.php file?  


RE: getting file not found - John_Betong - 08-05-2018

Try renaming the file and replace the lowercase first character with an uppercase S.


RE: getting file not found - SomeGuy - 09-24-2018

Hopefully you've solved this already, but just for reference...

https://stackoverflow.com/questions/23956325/is-it-required-to-include-the-namespace-file

Simply using a namespace does not include a file...


RE: getting file not found - richb201 - 09-24-2018

Yeah I already solved that, but thanks.