rogermaciel / cakephp-acl-link-helper
CakePHP 3.x ACL Link Helper.
Package info
github.com/rogermaciel/cakephp-acl-link-helper
Type:cakephp-plugin
pkg:composer/rogermaciel/cakephp-acl-link-helper
1.0
2019-11-27 14:43 UTC
Requires
- php: >=5.6
- cakephp/cakephp: ~3.0
Requires (Dev)
- phpunit/phpunit: ~4.1
This package is auto-updated.
Last update: 2026-02-28 04:45:43 UTC
README
Loading the helper
in src/View/AppView.php
<?php class AppView extends View { public function initialize() { $this->loadHelper('Acl', [ 'userModel' => 'Users' //Optional ]); } } ?>
Usage
Create normal link
<?= $this->Acl->link($title, $url, $options)); ?>
Create post link
<?= $this->Acl->postLink($title, $url, $options)); ?>