Replace Function in Library |
[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 ?
[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.
|
Welcome Guest, Not a member yet? Register Sign In |