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

[eluser]Stu Green[/eluser]
Hey guys,

Ok i've uploaded my Permission Class on the wiki. Thought I'd create a new discussion for it.

When I have more time I'll upload some more example controllers and view files, the wiki isn't really complete, but at least the library is there.

You will need to put the permission keys in to the DB manually, or you could create a page that adds these keys. But basically just add in the permissions table, the name of the permission, the key and category is optional.

Then in your controller (see example) you can use an IF statement to say if that new key is in the array or not.

Enjoy, and if anyone has any feedback or ways to improve it feel free.

Here it is http://codeigniter.com/wiki/Permission_Class/


Cheers


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