Welcome Guest, Not a member yet? Register   Sign In
controller folder structure question
#1

[eluser]dpgtfc[/eluser]
Hello,

I'm wondering if it is possible to organize my controllers into sub directories. If I have 20 of them, and they can be grouped into some sort of functionality, is there a way to put them into separate sub-directories of the application/controller folder?

I do this with my models, my libraries and my views, but I don't know if it would work with controllers. Would CI look for them automatically, or would I have to change some settings?

Thanks in advance,

Daniel
#2

[eluser]Pascal Kriete[/eluser]
The answer is yes.

But simply trying it would've told you as much.
#3

[eluser]dpgtfc[/eluser]
[quote author="inparo" date="1221764652"]The answer is yes.

But simply trying it would've told you as much.[/quote]

Thanks for the link, I must have missed that when browsing the user guide.

I did actually 'try' it, but I didn't try changing the url, though I suppose it should have been obvious since that is how the usual directory structure works with apache.




Theme © iAndrew 2016 - Forum software by © MyBB