Welcome Guest, Not a member yet? Register   Sign In
ACL Library v1.1
#1

[eluser]Steffen Brem[/eluser]
Hello,

I am sorry that I have to repost this, but CI doesn't allow me to edit my post.

Well, I announce you guys V1.1 of my ACL Library for CodeIgniter. It has now support for VPP (Very Private Page) and it converted to the CodeIgniter method syntax. So instead of calling:
Code:
$this->acl->addRole();

You now use:

Code:
$this->acl->add_role();

This affects every method inside the library, so change this if you are using v1.0!

Another change was the VPP support, usage of this extension is very simple. Let's say that you have a role called "user", this role can ONLY edit his own profile, but not others. How can we do this? Well let's take a look:
Code:
// Of course we need his id first, lets store it in a variable..
$user_id = $this->session->userdata('user_id');

// We add the role
$this->acl->add_role('user');

// We give the role a resource
$this->acl->allow('user', 'profile', 'edit/'.$user_id); // Note the slash (/) !!!

<h2>Download ACL V1.1!</h2>
#2

[eluser]Unknown[/eluser]
I can't to download!
#3

[eluser]Maurice Calhoun[/eluser]
I would like to try this but the link as dead.




Theme © iAndrew 2016 - Forum software by © MyBB