Hi,
I am creating an application which is going to have three types of users
-
Admin - will have access to all actions(admin, create, update, index, view, delete) of all controllers
and will have login form.
-
Business Users - will have access to all actions of all controllers except UserController
but..., say for example m having SalesController, then a business user will be having access to the above mentioned actions of SalesController but only to those which belongs to him (created by him), will also have login and sign up
-
End Users - these users will not be directly accessing the website but will have login and registration
and will request data from Mobile App
What is the best way to create such an application so that m having three different urls
-
site.com/controller/action - front users
-
site.com/business/controller/action - business users
-
site.com/admin/controller/action - for admin
Plz show me a right direction of how to do it , have gone through so many posts and discussion that m confused now. plzzzz
Things I have considered
- thought of creating admin module, but module is having its own models, so there will be 2 copies of models, one inside modules/admin/models and one in protected/models
Thnx