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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:31:54+00:00 2026-05-30T15:31:54+00:00

I am developing an application in php codeigniter . Now I am worrried abt

  • 0

I am developing an application in php codeigniter. Now I am worrried abt the permission.

I need page wise permission, page may be add records page, edit page, delete page and print report etc. There will be many users as well, and applicaiton will grow with passage of time.

If I implement ACL that will better for me or not

what can be ideal for me any suggestion.

  • 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-30T15:31:55+00:00Added an answer on May 30, 2026 at 3:31 pm

    First, let’s clear up some terms: I personally use the security term for things like preventing SQL injection, XSS attacks, where we have to validate input, filter/sanitize values, take care of the dynamically generated SQL commands, take care of properly escaping output (for JSON or HTML text or HTML attributes), etc. This is not about what you are asking, if I understood well.

    The access control or permissions system is where you give or deny access to a function for a user. It can be secure or not. I understand that to deny a user which does not have permission the access to a function may sound like “security”, but I wouldn’t use this specific word in this context, to avoid confusion.

    Now, the answer:


    I strongly recommend you create a few base controller classes to your needs. Read the following blog post carefully (it is short and useful): http://philsturgeon.co.uk/blog/2010/02/CodeIgniter-base-Classes-Keeping-it-DRY

    A code to check if the user is properly authenticated (logged in) is essential. If the user is not logged in, redirect to home page or login page.

    For fine-grained control, you could create your ACL in the database using the users table, plus an actions table, plus an acl table…

    The users table would contain the users data (id, name, login, password, etc)

    The actions table would contain the id field and at least one more field containing what suits best for your application: it can be only the controller class name (the first part of the URL, for example: “products”), granting access to the whole “products” controller or not. Or you may want to include both the controller class AND the method name (the first and second parts of the URL, for example: “products/add” and “products/delete”), and so on.

    To decide about the actions table is the most decisive step. Think very well about it, balance your needs (your “true” needs)… I developed a system where each and every action has its entry. It is good, but it needs work to be maintained.

    A very useful column for the actions table is a human-readable description of the action.

    The acl then would be nothing more than a column for the user id and another column for the action id.

    A “master” grant/deny access field in the users table is useful too, in case you want to temporarily deny access from a specific user, without having to delete all his permissions and maybe having to restore it later.

    With the database tables and your “controller/method” or “actions” strategy well defined, you can easily code in your base controller class a function which checks if the user have permission to execute the requested action.


    This is the basic. In my system, I have the users administration interface, where I can grant/deny the actions for each user (I use an ExtJS tree with checkboxes). One of these actions is the own user management. I have gone one step further, where the user who can access the user management may “delegate” (grant/deny) to other users only the actions he himself has access to.

    The system has several modules, and functions. The interface does not show anything the user does not have access. So, I have users who can see only a single or a couple of modules, and they don’t even imagine the existence of the other modules.

    It requires more work to manage all this, but the result worths.

    I also log each granted access, so it is possible to track who did what, and when. This log feature is very very easy to add, since you have this base controller “master function” allowing or disallowing the users to perform the actions.

    I hope I have helped. I’ve just shared a bit of what worked (and works) for me…

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

Sidebar

Related Questions

I am developing a PHP/MySQL application using vertrigoserver. I need to enter the German
I am developing small application in PHP that will need to store small number
I'm developing an application in PHP and Javascript and I need to set up
I'm developing a php application and need to test the functionality of sending emails.
I am developing a PHP application which will handling many company articles. Now I
I am developing a PHP application using our XAMPP setup as a test server.
I'm currently developing a PHP application that's using an Access database as a backend.
I am developing an web application using php. One of the requirement is the
Background I am developing my blog application in Cake PHP. I aim to provide
I am developing an PHP/Mysql application whereby if the user enter a certain value,

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.