Welcome Guest, Not a member yet? Register   Sign In
Load a library twice - SOLVED
#1

[eluser]Tri Dang[/eluser]
Hello everybody,

I want to use File Uploading library in my application. I need to upload files to different locations in 1 method of my controller, so I have different $config values. So, can I load the upload library twice? if not how can I upload different files to different locations?

Thank you.
#2

[eluser]Tri Dang[/eluser]
I looked at the source code of Upload.php in system/libraries folder and found that I can use set_xxx() instead of loading the library again.




Theme © iAndrew 2016 - Forum software by © MyBB