PHP Класс Neos\FluidAdaptor\ViewHelpers\Security\CsrfTokenViewHelper

..). Note: You won't need this ViewHelper if you use the Form ViewHelper, because that creates a hidden field with the CSRF token for unsafe requests automatically. This ViewHelper is mainly useful in conjunction with AJAX. = Examples =
...
Now, the CSRF token can be extracted via JavaScript to be appended to requests, for example with jQuery: jQuery (exemplary): $.ajax({ url: '', type: 'POST', data: { __csrfToken: $('#someDiv').attr('data-csrf-token') } });
Наследование: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$securityContext Neos\Flow\Security\Context

Открытые методы

Метод Описание
render ( ) : string

Описание методов

render() публичный Метод

public render ( ) : string
Результат string

Описание свойств

$securityContext защищенное свойство

protected Context,Neos\Flow\Security $securityContext
Результат Neos\Flow\Security\Context