Welcome Guest, Not a member yet? Register   Sign In
Severity: Runtime Notice
#1

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

Code:
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

Backtrace:

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
Reply
#2

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);.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB