I love HMVC but when I’ve installed sparks and php-activerecord spark on it, sparks did not run. I looked around so much but could not solve the problem. sparks use a loader library as hmvc and this causes problem.
I hope this will be solved soon and a I roll my code back to happy modules 😊
thanks.
I did get mine to work by putting the sparks MY_Loader code into the MX MY_Loader.php.
Actually I got rid of the one that came with MX and just changed my existing one that autoloads the sparks to
require(APPPATH . 'third_party/MX/Loader.php');
class MY_Loader extends MX_Loader
{
//sparks autoload code here
}
It works as wiredesignz says because MX_Loader in turn extends CI_Loader.
It does concern me though. Not just for MX but for all addons/extensions/whatever
There can be only one ‘MY_Loader.php’ and it won’t always work to just chain extends together in a loop to get back to the ci loader. Imagine if there were 2 or 3 other third_party apps that all require MY_Loader to extend their specific loader class. And in my humble newbial opinion it is strange and breaks hierarchical order to extend a third party that extends a core file. But as I say, I’m a newb and I don’t fully understand the complexities of making hmvc work.