Welcome Guest, Not a member yet? Register   Sign In
getting file not found
#1

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:

[font=Times New Roman]Message: Class 'S3Client' not found

Filename: controllers/Configure.php[/font]


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


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

[font=Courier New]class S3Client extends AwsClient implements S3ClientInterface
{
   use S3ClientTrait;

   public static function getArguments()
   {
       $args = parent::getArguments();
[/font]


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?  
proof that an old dog can learn new tricks
Reply
#2

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

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

https://stackoverflow.com/questions/2395...space-file

Simply using a namespace does not include a file...
Reply
#4

Yeah I already solved that, but thanks.
proof that an old dog can learn new tricks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB