In my application, I’ve followed the following pattern - for each model,
have a correspondent controller. For example, I’ve got a Document mode,
a DocumentsController, a DocType model and DocTypesController and so
Should I just put new admin actions into these controllers ?
I’m not sure if the pattern I’ve followed for the controllers is the
- Maybe I should put these controllers into a admin subdir/module and
create other controllers for other data access levels (not admin).
- Maybe a model does not have to necessarily have a correspondent
- Maybe this way of thinking is limiting!
So, any suggestions on how could I lay out my controllers and also the
aspect of the application would be greatly appreciated!