CodeIgniter Forums
Adding Folders inside the Views Folder - 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: Adding Folders inside the Views Folder (/showthread.php?tid=30464)



Adding Folders inside the Views Folder - El Forum - 05-15-2010

[eluser]pdxbenjamin[/eluser]
In my project folder I have this structure.

config
controllers
errors
libraries
models
views

I'd like this...

config
controllers
errors
libraries
models
views
->admin
->store
->otherjunk


I can't seem to access files inside of a folder inside of the views folder.



Thanks.


Adding Folders inside the Views Folder - El Forum - 05-15-2010

[eluser]theprodigy[/eluser]
you should be able to no problem. Just make sure you put the folder name in the call to load the view.

Code:
$this->load->view('store/cart');
// or
$this->load->view('admin/login');