I want to find out if an extra folder can be added to the Controller
folder. My reason is quite simple: I want to separate the project administration and client side.
Example: I have a controller named Post
that has the actions Index, Details, Delete, Create, Edit
. I want to make one controller as user
controller, which will consist of Index, Details
and another controller as admin
controller, which will consist of Delte, Create, Edit
. Then I can easily distinguish what is and put the administrator check on the whole admin class.
Another reason is because I want my URL to manage my site to look like /admin/post/delete
, and not /post/delete
.
So this is possible, and if so, what would be the best way to implement this?
source share