Welcome Guest, Not a member yet? Register   Sign In
Basic Permissions System - Permission Class (on wiki)
#5

[eluser]pankaj[/eluser]
Thanks for your reply, you have done good work but I want to use it in my project so can you please explain me the table Permissions and the over all how functionality works like how to give key names and category names.

please explain this code

Code:
$post = $this->CI->input->post();  //I changed this to take post variables
        foreach ($post as $key => $value)
        {
            if (preg_match('/^perm([0-9]+)/i', $key, $matches))
            {
                $this->CI->db->set('groupID', $groupID);
                $this->CI->db->set('permissionID', $matches[1]);
                $this->CI->db->insert('permission_map');
            }
        }
your help will be really appreciated.


Messages In This Thread
Basic Permissions System - Permission Class (on wiki) - by El Forum - 03-19-2009, 04:06 AM
Basic Permissions System - Permission Class (on wiki) - by El Forum - 03-19-2009, 09:25 AM
Basic Permissions System - Permission Class (on wiki) - by El Forum - 05-25-2009, 01:45 AM
Basic Permissions System - Permission Class (on wiki) - by El Forum - 05-25-2009, 02:36 AM
Basic Permissions System - Permission Class (on wiki) - by El Forum - 05-25-2009, 02:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB