Welcome Guest, Not a member yet? Register   Sign In
ACL for CI ?
#5

[eluser]phpserver[/eluser]
Quoting some code straight from erkana auth that can be found here,i would say this is the closest you will come to not having to protect individual functions as of now.

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed.');

class Transactions extends Controller {

  function Transactions() {
    parent::Controller();
    $this->erkana_auth->required();
  }

  // index()
  // List all a user's transactions
  function index() {
    $this->load->view('transactions');
  }

}

For permissions,groups and roles,dx auth is your best bet.Unless you want some super fine grained access control to require zend acl,then,dx auth is the way to go,or any other auth libs out there.Erkana auth is still in Alpha but the author has Skribit,you could pitch your idea.


Messages In This Thread
ACL for CI ? - by El Forum - 04-20-2010, 03:42 PM
ACL for CI ? - by El Forum - 04-20-2010, 06:14 PM
ACL for CI ? - by El Forum - 04-29-2010, 06:59 AM
ACL for CI ? - by El Forum - 04-29-2010, 07:10 AM
ACL for CI ? - by El Forum - 04-29-2010, 07:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB