Modular Extension sub-folder views - 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: Modular Extension sub-folder views (/showthread.php?tid=12501) |
Modular Extension sub-folder views - El Forum - 10-21-2008 [eluser]fatnic[/eluser] Hi. Dows anyone know if the ME HMVC library supports views in sub-folders? I have a structure like this Code: \modules I'm trying to load up test2 index view with Code: $this->load->view('test2/index); Modular Extension sub-folder views - El Forum - 10-21-2008 [eluser]OES[/eluser] Yes is the simple answer just like you put. Lee Modular Extension sub-folder views - El Forum - 10-21-2008 [eluser]fatnic[/eluser] Sorry, but I don't see where I answered my own question. Modular Extension sub-folder views - El Forum - 10-21-2008 [eluser]OES[/eluser] Is your normal view loading ie. $this->load->view('index); If so by putting: $this->load->view('test2/index); index should be in the folder. modules --test ----views ------test2 --------index.php Does this make sense ? Hope it does. Modular Extension sub-folder views - El Forum - 10-21-2008 [eluser]fatnic[/eluser] Sorry if my folder structure isn't clear but there is an index.php in the test2 folder. There are two index.php files. One in the views folder and one in it's sub-directory. Modular Extension sub-folder views - El Forum - 10-21-2008 [eluser]OES[/eluser] No problem my post was not that clear. Ok so you have your modules folder. Code: modules Does this make better reading ? Hope it clears it up. Lee Modular Extension sub-folder views - El Forum - 10-21-2008 [eluser]fatnic[/eluser] Yes. That is exactly how I have it now. |