Controllers in folders, 2 levels+ deep |
Hi, I have a "weird" setup for controllers.
I have the controllers folder, and in there I have an api folder. I need to add another level there, but it does not seem to work. Using https://github.com/chriskacerguis/codeig...restserver The structure I want to work is application |_ controllers |_ apiv2 |_another If I put a controller in in apiv2, I can get it to work, but if i put in another, I get a 404 error. Are there settings I need to change in order to get this working? Is this just not possible?
Not in CI2.
It's possible in CI3 (and no configuration required), but I'd not recommend that ... it's understandable if you want to separate a certain section of your application under a different dir, but more than 1 nesting level is usually superfluous. |
Welcome Guest, Not a member yet? Register Sign In |