CodeIgniter Forums
Autoloading models outside of the normal model directory - 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: Autoloading models outside of the normal model directory (/showthread.php?tid=59132)



Autoloading models outside of the normal model directory - El Forum - 08-28-2013

[eluser]A_funs[/eluser]
I am using a HMVC approach on an application, thus my models are in module directories outside the traditional model folder in CI. How can I go about autoloading these models?


Autoloading models outside of the normal model directory - El Forum - 08-28-2013

[eluser]A_funs[/eluser]
Ok, I figured that out, but That's still running into a problem.

I'm using both php.activerecord and HMVC, and the problem is all the static methods etc that need to be generated from the classes within php.activerecord are not loading because the models are outside the normal model forlder.

Furthermore, if I manually load those models,the ActiveRecord Class they need to derive from is also not defined in the HMVC models