CodeIgniter Forums
Path inside modules - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Path inside modules (/showthread.php?tid=26556)



Path inside modules - El Forum - 01-17-2010

[eluser]molistok[/eluser]
I am adding modules in my web, and I don't understand somethinks, for example:

First situation:
I have a module with name profile, and inside of this module one controller with the same name. In views folder all the views of profile. Therefore: modules/profile/controllers/profile.php
modules/profile/views/view_example.php // all views of profile

If I have this distribution when I want call one view I have to do this:
$this->load->view('view_example');

Second situation:
I have a module with name profile, and inside of this module one controller with the same name. In the views folder, folder profile. Therefore: modules/profile/controllers/profile.php
modules/profile/views/profile/view_example.php // all views of profile

If I have this distribution when I want call one view I have to do this:
$this->load->view('profile/profile/view_example');


I don't understand because I can't call the view with this path:
$this->load->view(profile/view_example');
or
$this->load->view(view_example'); (when we call the view inside of controller profile)

Can any help me please?
Thanks.


Path inside modules - El Forum - 01-17-2010

[eluser]InsiteFX[/eluser]
You not giving enough information here!

Are you using HMVC or Matchbox for your modules?

If not do a search in the wiki to get one of them.

Enjoy
InsiteFX


Path inside modules - El Forum - 01-18-2010

[eluser]Muser[/eluser]
I think he is using HMVC. I run into the same problem/question!


Path inside modules - El Forum - 01-19-2010

[eluser]molistok[/eluser]
Thanks for the replies,
Yes, I am using HMVC.

Can any help me please?

Thanks.