[eluser]internut[/eluser]
After a whole lot of work and my controllers getting large ( i need to move to break code over to models ) I'm guessing I should be splitting things up.
I have a "Users" controller that basically is handling every aspect of user management.
add /save / edit / view user groups / view user group expirationss / view user lists/ etc
should I break it down into a controller each:
controllers are in an /admin/ sub-folder. So if I break them up instead of:
/install_folder/admin/users/add/
/install_folder/admin/users/edit/1
/install_folder/admin/users/groups/1
it would become:
/install_folder/admin/users_add/
/install_folder/admin/users_edit/1
/install_folder/admin/users_groups/1
more controller files but breaks things up much better.
I make so much more work for myself. Is that the route I should go? Based on this thread
I think so.
Can controllers go two folders deep? then I could do:
/install_folder/admin/users/add/
/install_folder/admin/users/edit/1
/install_folder/admin/users/groups/1
Then all user controllers could be in their own folder.
Thanks in advance and after any thoughts.