Welcome Guest, Not a member yet? Register   Sign In
upload image
#4

There are a number of things wrong here.

I think you need to learn the basics of PHP and of CI and practise debugging yourself.

The error you're getting (if you read it) clearly tells you the problem and where to find it.

"$upload_model" is an undefined property on line 15. So on that line you see that you're calling "$this->upload_model->do_upload();", but CI doesn't know what that model is, because you haven't loaded it.

Also, in your "upload_model.php" file, the class name is "User_model" so you need to update that to conform.

There's a good chance after fixing those things, you'll have other errors. If so, read them carefully and see if you can find the problem yourself.
Reply


Messages In This Thread
upload image - by davy_yg - 05-09-2016, 11:50 PM
RE: upload image - by JayAdra - 05-10-2016, 12:23 AM
RE: upload image - by davy_yg - 05-10-2016, 08:32 PM
RE: upload image - by JayAdra - 05-10-2016, 09:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB