Welcome Guest, Not a member yet? Register   Sign In
Replace Function in Library
#1

[eluser]Dregond Rahl[/eluser]
I want to know if its possible to replace a function in the file upload library

say i want to change the is_image() function to a custom one, but i don't want to modify the the file directly i want to do it in my application. How would i do it ?
#2

[eluser]depthcharge[/eluser]
extend the upload class

Take a look at the Extending Native Libraries section of the userguide.

You then extend the original library and can replace functions/methods with your own, without touching the original library file

An Example of extending the upload class.
#3

[eluser]Dregond Rahl[/eluser]
Thank you ^^




Theme © iAndrew 2016 - Forum software by © MyBB