Welcome Guest, Not a member yet? Register   Sign In
Path inside modules
#1

[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.
#2

[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
#3

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

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

Can any help me please?

Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB