CodeIgniter Forums
How to load a module outside modules folder on HMVC with CodeIgniter? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: How to load a module outside modules folder on HMVC with CodeIgniter? (/showthread.php?tid=57851)



How to load a module outside modules folder on HMVC with CodeIgniter? - El Forum - 04-17-2013

[eluser]boytun[/eluser]
Since I didn't find it anywhere else on the net, I hope I'm not asking a stupid question.

So I have this structure on my app:

Quote:My APP
|_
Controllers
|_
Modules
|_
bar
|_
foo
|_
Views
I can load the bar module on the foo's views using this code:

<?php echo Modules::run('bar/bar/index'); ?>
But I'm unable to load the same module on MyAPP views using the code above.

What am I missing? Thanks!