PHPackages                             pranaya/cakephp-zone-acl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. pranaya/cakephp-zone-acl

ActiveCakephp-plugin[Authentication &amp; Authorization](/categories/authentication)

pranaya/cakephp-zone-acl
========================

A CakePHP Acl plugin based on application zones for flexibility and simplicity

2.0.0(11y ago)020MITPHPPHP &gt;=5.3

Since Apr 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/pranaya/cakephp-zone-acl)[ Packagist](https://packagist.org/packages/pranaya/cakephp-zone-acl)[ Docs](https://github.com/pranaya/cakephp-zone-acl)[ RSS](/packages/pranaya-cakephp-zone-acl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

CakePHP ZoneAcl Plugin
======================

[](#cakephp-zoneacl-plugin)

CakePHP ZoneAcl plugin takes a little different approach to handling permissions in your CakePHP application. ZoneAcl lets you divide your application contollers/actions into groups, called zones. After you defined your arbitrary zones, you decide which users or groups get permission to which zones on any criteria you like. It provides simplicity and flexibility to your application acl.

---

Requirement
-----------

[](#requirement)

- CakePHP 2.x

Installation
------------

[](#installation)

#### Method 1:

[](#method-1)

1. Download this:
2. Unzip content into app/Plugin/ZoneAcl

#### Method 2:

[](#method-2)

**Using composer**

Add this to your composer.json file:

```
"require": {
    "pranaya/cakephp-zone-acl": "[VERSION].*"
}
```

Then run *composer install* or *composer update* command

#### Load the Plugin

[](#load-the-plugin)

At app/bootstrap.php

```
CakePlugin::load('ZoneAcl', array('bootstrap' => true));
```

Usage
-----

[](#usage)

#### Configurations

[](#configurations)

At app/Config/core.php

Change

```
Configure::write('Acl.classname', 'DbAcl');
Configure::write('Acl.database', 'default');
```

To

```
Configure::write('Acl.classname', 'ZoneAcl.ZoneAcl');
//Configure::write('Acl.database', 'default');
```

Then copy **app/Plugin/ZoneAcl/Config/zone-acl.ini** file to **app/Config/zone-acl.ini**

If you want to use the ZoneAcl.ZoneAclHtml Helper.

At app/Controller/AppController.php

```
