CodeIgniter Forums
Load Widget Hmvc - 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: Load Widget Hmvc (/showthread.php?tid=57814)



Load Widget Hmvc - El Forum - 04-13-2013

[eluser]boytun[/eluser]
Hello my friends.

Please I have a big problem.
I try to load my widgets, based on the Hmvc architecture, in the mvc view.
I get to cases:

1st case:
when my view is loacated directly on the views floder, everything works fun.

second case:
when my view is located in another floder into views floder, I get errors.

So, please can any one have a solution for my problem?

Thanks in advance



Load Widget Hmvc - El Forum - 04-13-2013

[eluser]Harold Villacorte[/eluser]
When you load resources from outside the module make sure to include the module name:
Code:
$this->load->view('module/resource');