![]() |
Overwrite one function in download class. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Overwrite one function in download class. (/showthread.php?tid=31019) |
Overwrite one function in download class. - El Forum - 06-03-2010 [eluser]businessman332211[/eluser] I just want to overwrite ONE function in the uploader class. I have created a new file inside applications/library and it's My_Upload.php. I have added the following code to it: I basically want to overwrite the original filetype check function and add that ability to use * as a wildcard. For some reason when I do this however it's not overwriting the function. Any advice? Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Overwrite one function in download class. - El Forum - 06-03-2010 [eluser]Flemming[/eluser] it needs to be name MY_Upload ... not My_Upload! Overwrite one function in download class. - El Forum - 06-07-2010 [eluser]businessman332211[/eluser] Perfect. Finally working. Thanks for that. |