Welcome Guest, Not a member yet? Register   Sign In
More than one MY_Loader.php ? How can I fix this?
#1

[eluser]iansane[/eluser]
Hi, I'm new to CI but have gone through several online tutorials and am at a point where I want to use two extensions (phpactiverecord and hmvc) in the same application. I can implement either one on it's own and it works fine. The problem is they both use their own version of MY_Loader.php so obviously I can't put them both in the same directory. I thought of putting the hmvc class in the same file since it is only a class declaration but that won't work because they are both called class MY_Loader.

Code:
class MY_Loader extends CI_Loader
and
Code:
class MY_Loader extends MX_Loader {}

The second one simply extends MX_Loader and has no code of it's own.

I'm concerned that if I change the name of it then it will break the hmvc app. There are several files that may rely on it being named as is.

What is the best way to deal with this?

Thanks






Theme © iAndrew 2016 - Forum software by © MyBB