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.


Messages In This Thread
Path inside modules - by El Forum - 01-17-2010, 06:08 AM
Path inside modules - by El Forum - 01-17-2010, 09:09 PM
Path inside modules - by El Forum - 01-18-2010, 04:23 PM
Path inside modules - by El Forum - 01-19-2010, 02:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB