Welcome Guest, Not a member yet? Register   Sign In
Large Application, want to create SubDirs in MVC folders
#3

[eluser]PhilTem[/eluser]
Hi GChester,

I can only confirm, what @boltsabre said so far, you can nest your views indefinitely deep (of course, only as long as the OS supports the length of the path) you only need to make the argument to $this->load->view() match the path Wink
By default, CI only supports one level of folders in the APPPATH . 'controllers' folder, however, you can extend CI_Router with MY_Router and make it find controllers in any sub-folder, no matter how deep it is.

On the other hand, you might really want to go for HMVC (the best one IMHO is from @wiredesignz) which helps you separate the business logic of your large application even better since everything is separated by, let's say, categories i.e. by what it's dealing with Wink

As far as my knowledge on CI 3.0 goes, HMVC will be supported by CI by default, yet only in a light version (don't know an exact comparison with @wiredesignz' implementation Wink


Messages In This Thread
Large Application, want to create SubDirs in MVC folders - by El Forum - 01-21-2013, 04:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB