request->controller; // controller name (Sites, Suivis, Organismes, ...) $bStyle = 'margin-right: 10px'; $CAN_ADD = false; if ( //in_array($role, ['Administration Plus','Super Administrateur']) in_array($role, ['Administration','Super Administrateur']) || in_array($singularHumanName, ['Matériel','Suivi','Emprunt','Fournisseur']) ) $CAN_ADD = true; if ($CAN_ADD) $echoActionButton($this->Html, 'icon-plus', $bStyle, ' Ajouter', $this->request->controller, 'add', null); ?>