Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8970217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:42:01+00:00 2026-06-15T17:42:01+00:00

My CodeIgniter web application must be divided in three big parts: Admin – unlimited

  • 0

My CodeIgniter web application must be divided in three big parts:

  1. Admin – unlimited access to editing, deleting and creating data
  2. User – read-only
  3. Partner – limited access to editing data, no deleting, no creating

All parts are independent from each other, but work with the same database.

My question is – what is the best way to keep them apart?

I see two possible ways:

  1. Subfolder in controller directory. Not good – if i create an Admin-subfolder i wont be able to do something like this admin/events/controller_name.php or admin/places/controller_name.php. And without such a separation it will be a mess.
  2. Separate applications on subdomains (admin.sitename.com/ , partner.sitename.com/). Also not very good – i will have to duplicate all models (which are same in all cases), libraries etc.

Are there any better ways to do this? It would be really nice if i could somehow use different sets of controllers and only one set of models/libraries.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:42:02+00:00Added an answer on June 15, 2026 at 5:42 pm

    Separate controller libraries for each.

    • Users – normal controller
    • Admin – admin_controller extends controller
    • Partner – partner_controller extends controller

    Read here: http://philsturgeon.co.uk/blog/2010/02/CodeIgniter-Base-Classes-Keeping-it-DRY

    Separate folders in Controllers and Views to keep the functionality separate. Use your routing to sort how you reach each.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using codeigniter to create a web app. I'm creating the drop down menus
I use CodeIgniter as my web application framework. I used a simple Try/Catch and
I have create a web application using CodeIgniter making at first a login interface.
I'm working on a web application in Codeigniter. I'd like to integrate the functionality
I am currently developing a big web application. Users will be able to post
I'm building a very small web ERP application with PHP / mySQL / CodeIgniter
I have a PHP web application built with CodeIgniter MVC framework. I wish to
I have a web application built with jQuery Mobile and PHP (CodeIgniter framework). Now
Recently I have developed a web application with codeigniter. I am facing a session
I am using codeigniter php MVC framework to develop a web application. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.