PHP code example of roshyo / rights-management-plugin
1. Go to this page and download the library: Download roshyo/rights-management-plugin 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/ */
roshyo / rights-management-plugin example snippets
public function registerBundles(): array
{
$bundles = [
// ...
new \BeHappy\SyliusRightsManagementPlugin\BeHappySyliusRightsManagementPlugin()
];
// ...
}
twig
<div class="ui segment">
<h4 class="ui dividing header">{{ 'be_happy_rights_management.ui.group'|trans }}</h4>
{{ form_widget(form.group) }}
</div>