PHP code example of rogermaciel / cakephp-acl-link-helper

1. Go to this page and download the library: Download rogermaciel/cakephp-acl-link-helper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rogermaciel / cakephp-acl-link-helper example snippets



	class AppView extends View
	{
		public function initialize()
		{
			$this->loadHelper('Acl', [
				'userModel' => 'Users' //Optional
			]);
		}
	}

<?= $this->Acl->link($title, $url, $options)); 

<?= $this->Acl->postLink($title, $url, $options));