Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 668 Bytes

README.md

File metadata and controls

24 lines (22 loc) · 668 Bytes

AclHelper

Acl helper for CakePHP 2.x access control list component

Usage

For one url in your View.ctp check access to url

$this->Acl->check('/admin');

For many urls in your View.ctp check access to urls

$this->Acl->check(array('/admin', '/admin/private-action'));

Print link for Html helper

$this->Acl->link('Reset cache', '/admin/cache');

Check menu parent element access

$this->Acl->checkList(array('/admin/cache', '/admin'));

Links