• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ACL Library v1.1

[eluser]Steffen Brem[/eluser]

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:

You now use:


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:
// Of course we need his id first, lets store it in a variable..
$user_id = $this->session->userdata('user_id');

// We add the role

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

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

I can't to download!

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.