Best Way Of Creating Different Ends

Hi,

I am creating an application which is going to have three types of users

  1. Admin - will have access to all actions(admin, create, update, index, view, delete) of all controllers

                  and will have login form.
    
  2. 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
    
  3. 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

  1. site.com/controller/action - front users

  2. site.com/business/controller/action - business users

  3. 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

  1. 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

there are more than one way to tackle this problem simplest and easiest is to create modules for each one of your ends you can access models of module

I think you should generate modules for each end and put your commonly used model inside protected/models so that it cant be duplicate and these models can be accessible inside of your modules…

I think you should generate modules for each end and put your commonly used model inside protected/models so that it cant be duplicate and these models can be accessible inside of your modules…

Hi,

i think Ahamed Rifaideen is your right answer …

you should create the common model on protected/model folder