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 6157585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:48:38+00:00 2026-05-23T20:48:38+00:00

I am making a site for a client and decided i would use code

  • 0

I am making a site for a client and decided i would use code igniter.

The site essentially has two backends, one for designers, and one for a sales team. So after logging in, the user will be redirected to either

  • mysite.com/sales/
  • mysite.com/design/

The sales team for example can view orders, containers, products, therefore i need a controller for each of these.

  • mysite.com/sales/orders/

The sales need to be able to view, edit, delete certain orders…

  • mysite.com/sales/orders/vieworder/235433

Basically my problem is i dont have enough url segments to play with.

My thoughts on solving my problem

  • removing the orders, containers, products classes and making ALL of their methods as methods of the sales class, although this would mean a large number of methods and loading all models so it seemed kind of pointless.

  • removing the sales/designer classes and controlling what each kind of user has access to based on a user type stored in session data.

  • a way of having an extra url segment?

I appreciate any advice, I just dont want to get 3 weeks into the project and realise i started wrong from the beginning!

  • 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-05-23T20:48:39+00:00Added an answer on May 23, 2026 at 8:48 pm

    Use folders.

    If you make a subfolder in /application/ called sales you can put different controllers in there:

    /application/
        /sales/
          orders.php /* Controller */
        /design/
    

    Then in orders.php you will put your vieworders($id) method and so on, and you will be able to acces it with domain.com/sales/orders/vieworders/id.

    You can also make subfolders in the /models/ and /views/ to organize your files.

    Now, Access Control is something apart and it depends more in the auth system you are using.

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

Sidebar

Related Questions

I am making use of AJAX on my site and I would like to
I am working on a site for a client that has jquery driven tabbed
Shouldn't we use Pixel for anything in CSS if we are making a site
I was approached by an old client about making a boutique web site that
Im making a site for a client so they will be switching to my
I'm making a RSS client and i think it would be really cool if
I am making a site that publishes articles in issues each month. It is
I'm in the process of making my PHP site Unicode-aware. I'm wondering if anyone
I'm making modifications to a members-based site whose owner wants to be able to
I'm making an automated script to read a list from a site posting the

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.