• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Severity: Runtime Notice

i am using this tutorial and want to do multiple image upload images are uploaded sucessfully but i am getting this error

Severity: Runtime Notice

Message: Declaration of MY_Upload::initialize() should be compatible with CI_Upload::initialize(array $config = Array)

Filename: libraries/MY_Upload.php

Line Number: 445


File: C:\xampp\htdocs\ko\application\controllers\upload.php
Line: 37
Function: library

File: C:\xampp\htdocs\ko\index.php
Line: 292
Function: require_once

this is MY

The error message is pretty straightforward. Since you are extending CI_Upload, your methods which override CI_Upload's methods should accept the same parameters as the overridden methods. In this case, your initialize() method should accept an array parameter. If you don't use it yourself, you should at least accept it and pass it to parent::initialize($config);.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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